필터 지우기
필터 지우기

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

조회 수: 7 (최근 30일)
Safiullah Khan
Safiullah Khan 2012년 9월 11일
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

답변 (2개)

Sean de Wolski
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.

Peter Perkins
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:

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by