what is the algorithm used for generating random number in rand() function?
7 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Sean de Wolski
2012-9-11
编辑:Sean de Wolski
2012-9-11
I just read about this in Wired Magazine. Here's the article; good luck - I think you'll need it!
FWIW, MATLAB's random number generators require a seed and are deterministic given the seed.
0 个评论
Peter Perkins
2012-9-11
You will find very specific literature references to all of the generators that MATLAB provides if you look in the MATLAB documentation:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Random Number Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!