If I have an operation involving randomness (lets call it operation_with_randomness(number)), and I want it to execute x times
> b <- rep(operation_with_randomness(number), x)
I get
> b
1.5472491 1.5472491 1.5472491 1.5472491 1.5472491 1.5472491 ...
Is there any smart way (for example, not a loop structure) to run operation_with_randomness(number)each time to get a vector b that contains values ββfrom x separate runs?
source
share