Matlab's rand function

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Matlab's rand function

Bart Vandewoestyne-3
I think we can be pretty sure that the m-file implementation at

http://www.mathworks.com/moler/ncm/randtx.m

really describes the built in rand function of Matlab R13 (I can only
test up until that release here at work):

>> version

ans =

6.5.0.180913a (R13)

>> any(any(rand(100)-randtx(100)))

ans =

     0


Now the only thing I would like to know for sure is on what paper this
implementation is based.  The only information I have up until now is
the 'Random Thoughts' paper from Cleve Moler...

Concerning the license issues: if we have enough theoretical information
on the generator used in Matlab, maybe we don't really need to look at
randtx.m and can try to implement it ourselves, based on the papers
describing the algorithm?

Regards,
Bart

--
!!!!!!!!!!!!!!!!!!! email change !!!!!!!!!!!!!!!!!!!!!!!
My email address is now Bart.Vandewoestyne AT telenet.be
        Please update your addressbook!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!