Hello, My name is Decha.
For random number from distribution by specific seed in Wolfram. There are normally as
dist = UniformDistribution[{3467, 87543}];
SeedRandom[46730]
RandomVariate[dist]"
I read in Wolfram document. If distribution is non-uniform, can I use RandomInteger[dist], RandomReal[dist]? Is result same with RandomVariate or not?
Wolfram have method of pseudorandom as Congruential, ExtendedCA, Legacy, MersenneTwister, MKL, ParallelGenerator, ParallelMersenneTwister, Rule30CA .
For
dist = UniformDistribution[{3467, 87543}];
SeedRandom[46730]
RandomVariate[dist]
If I don't type method as above, what is normally of method using?
If I need to specific method. Is as below correct?
2.1 dist = UniformDistribution[{3467, 87543}];
SeedRandom[46730,Method -> "ExtendedCA"]
RandomVariate[dist]
2.2 BlockRandom[SeedRandom[46730, Method -> "ExtendedCA"];
RandomVariate[UniformDistribution[{3467, 87543}]]
2.3 BlockRandom[SeedRandom[46730, Method -> #];
RandomVariate[UniformDistribution[{3467, 87543}] &, {"Congruential", "ExtendedCA", "Legacy",
"MersenneTwister", "MKL", "Rule30CA"}]
If I use Wolfram for only this, very little, I don't need to use Blockrandom. If many, I should use block random.
I thank you for your answer. Thank you again. Decha Promtem