RAND function
Blitz3D Forums/Blitz3D Programming/RAND function
| ||
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 |
| ||
Likely passthrough to C++ rand()l. |
| ||
You could try this way (using pseudorandom numbers): |
| ||
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. |