RANDOMIZE

The RANDOMIZE command reseeds the random number generator.

  Syntax
RANDOMIZE Seed Value
  Parameters
Seed Value
Integer
This value is an integer number such as 1.

  Returns

This command does not return a value.

  Description

If the random number generator is not reseeded the RND() command can return the same sequence of random numbers. To change the sequence of random number every time the program is run, place a randomize statement with an integer number at the beginning of the program and change the value with each run.

  Example Code
RANDOMIZE TIMER()
DO
SET CURSOR RND(640),RND(480)
PRINT "*"
LOOP
  See also

CORE Commands Menu
Index