Message Boards Message Boards

GROUPS:

Ask for typing about random from dist follow method of pseudorandom

Posted 11 months ago
571 Views
|
0 Replies
|
0 Total Likes
|

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]"
  1. I read in Wolfram document. If distribution is non-uniform, can I use RandomInteger[dist], RandomReal[dist]? Is result same with RandomVariate or not?

  2. 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

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract