How can I generate sequence of uniformly distributed random numbers in MATLAB without using RAND function?

2 views (last 30 days)
How can I generate sequence of uniformly distributed random numbers in MATLAB without using RAND function?

Answers (1)

Walter Roberson
Walter Roberson on 11 Aug 2015
  1 Comment
Brendan Hamm
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.

Sign in to comment.

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!