How can I generate sequence of uniformly distributed random numbers in MATLAB without using RAND function?
2 views (last 30 days)
Show older comments
How can I generate sequence of uniformly distributed random numbers in MATLAB without using RAND function?
1 Comment
Answers (1)
Walter Roberson
on 11 Aug 2015
1 Comment
Brendan Hamm
on 11 Aug 2015
Cleve Moler blogs on the Mersenne-Twister Algorithm which has the longest period of any RNG for doulbe precision.
LCG is really easy to implement though and likely the reason your MP3 player does a bad job at "shuffling" your music.
See Also
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!