RANDOMIZE

From QB64 Wiki
Revision as of 21:13, 18 September 2009 by imported>Clippy
Jump to navigation Jump to search

RANDOMIZE is used with a seed number to generate random(RND) numbers.


Syntax: RANDOMIZE seednumber


  • Seednumber can be just about any value.
  • If the same seed number is used, the sequence of random numbers returned will be identical.


Example: RANDOMIZE TIMER


  • Using a TIMER value ensures that the starting return values are different

every time. Otherwise they would always be the same!


See also: RND



Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage