[<<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)
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson