Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>randomize reseed random number generator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RANDOMIZE                Reseed Random Number Generator

 RANDOMIZE [expression]

    Supplies a new seed for the pseudo-random number generator.

  expression    A numeric expression; a seed for the random number
                generator.

   -------------------------------------------------------------------------

      Notes:    If no argument is given, Turbo Basic prompts for a number
                between -32768 and 32767. Each random number seed produces
                a unique sequence of random numbers, but the same seed
                always produces the same sequence.

                By replacing expression with TIMER, you could seed pseudo-
                random number generator with a value derived from the
                current time of day. Another option is to use the MTIMER
                function.

See Also: MTIMER RND TIMER (Function)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson