Shop OBEX P1 Docs P2 Docs Learn Events
PBASIC Random Algorithm — Parallax Forums

PBASIC Random Algorithm

ArchiverArchiver Posts: 46,084
edited 2003-08-24 17:31 in General Discussion
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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-08-24 17:31
    At 04:11 PM 8/24/03 +0000, microextra wrote:
    >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
Sign In or Register to comment.