Is there a way to use one copy of simulated random variable in one line in Python (without defining a new function)?
For example, if I need to evaluate f(x) = x + sin(x) for normal random variable, I will write x = norm.rvs() then the next line x + sin(x). If I do norm.rvs() + sin(norm.rvs()) this is equivalent to simulating two independent copies of random variables, which is not what I want to do.