RAND function

Blitz3D Forums/Blitz3D Programming/RAND function

Gerard(Posted 2010) [#1]
hello !

Is one of you knowing with which algorithm is programmed the "rand" function in Blitz3D ?

I would like to know it to make the same function in an old program in GFA-Basic, and compar results with this program rewritten in Blitz3d .

Thank you in advance for any answer !

Cordially
Gerard


stanrol(Posted 2010) [#2]
Likely passthrough to C++ rand()l.


Krischan(Posted 2010) [#3]
You could try this way (using pseudorandom numbers):




Zethrax(Posted 2010) [#4]
Likely passthrough to C++ rand()l.
Very probably. I recall Mark Sibly mentioning on another forum that he made extensive use of the C++ STL in coding Blitz3D, and I doubt that he'd try to reinvent the wheel when perfectly good existing solutions were available.