what is the algorithm used for generating random number in rand() function?

Asked by Safiullah Khan on 11 Sep 2012
Latest activity Answered by Peter Perkins on 11 Sep 2012

I need to write my own random number generator function that has no seed and is unpredictable. if anyone know about the algorithms or source code of MATLAB rand() function please let me know. any help in this regard will really be appreciated.ASAP

I have tried generating through system clock but it is not efficient.

Thanks Safiullah

0 Comments

Safiullah Khan

Products

No products are associated with this question.

2 Answers

Answer by Sean de Wolski on 11 Sep 2012
Edited by Sean de Wolski on 11 Sep 2012

I just read about this in Wired Magazine. Here's the article; good luck - I think you'll need it!

http://www.wired.com/wiredenterprise/2012/08/st_randomnumbergenerators/

FWIW, MATLAB's random number generators require a seed and are deterministic given the seed.

0 Comments

Sean de Wolski
Answer by Peter Perkins on 11 Sep 2012

You will find very specific literature references to all of the generators that MATLAB provides if you look in the MATLAB documentation:

http://www.mathworks.com/help/techdoc/math/brn4ixh.html#brvku_2

0 Comments

Peter Perkins

Contact us