Hi Jaime,
What is RandomVariable1Histogram
? SeedRandom
is used to specify a seed value for the random number generator so that it generates a repeatable sequence of numbers.
If you evaluate the code below you will almost certainly get a different list of numbers.
RandomReal[1, 5]
(* {0.211826, 0.748657, 0.422851, 0.247495, 0.977172} *)
With the following, you will get the same list of numbers because the seed is the same
SeedRandom[123];
RandomReal[1, 5]
(* {0.455719, 0.977826, 0.943215, 0.962216, 0.302348} *)
If you want to generate repeatable results from your MC simulation then first evaluate SeedRandom
with a specific seed value. To repeat with the same results, use SeedRandom
with the same seed value. You can use BlockRandom
if you want to scope the seed setting.