PBASIC Random Algorithm
Archiver
Posts: 46,084
Hello,
I am looking to reproduce the PBASIC RANDOM function in one of my VB
programs. Has anyone took the time to figure out just how the Stamp
calculates random numbers based on the given seed?
Thanks,
Jared
I am looking to reproduce the PBASIC RANDOM function in one of my VB
programs. Has anyone took the time to figure out just how the Stamp
calculates random numbers based on the given seed?
Thanks,
Jared
Comments
>Hello,
>
>I am looking to reproduce the PBASIC RANDOM function in one of my VB
>programs. Has anyone took the time to figure out just how the Stamp
>calculates random numbers based on the given seed?
>
>Thanks,
>Jared
Jared -
Here is a past message from the Stamp List archives which discusses the random
function. It does not give the exact algorithm but discusses how it might
be done.
http://groups.yahoo.com/group/basicstamps/message/23988
Regards,
Bruce Bates