What limitations does MATLAB have in pseudo-random sequence generation ?
Show older comments
I am interested in learning about the limitations of the pseudo-random sequences generated by function rand() in terms of statistical independence.
For example if I work with the default rng settings (i.e. Type: 'twister', Seed: 0, State: [625x1 uint32]) and keep calling the function rand(1,1e5) multiple times, will the results eventually repeat ? If yes, then how many function calls are safe to get independent results? Or will the rng change its seed or type automatically to avoid repetitive results?
In the documentation link below it is said that the generated numbers "pass various statistical tests of randomness and independence". I would be very interested in seeing the detailed results of the tests, if possible.
https://www.mathworks.com/help/matlab/math/create-arrays-of-random-numbers.html
Accepted Answer
More Answers (0)
Categories
Find more on Random Number Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!