Difference between revisions of "RANDOMIZE"

From QB64 Wiki
Jump to navigation Jump to search
(Created page with ''''RANDOMIZE''' is used with a seed number to generate random(RND) numbers. ''Syntax:'' RANDOMIZE seednumber ''Example:'' RANDOMIZE TIMER Using a TIMER value insures t…')
 
Line 4: Line 4:


''Example:'' RANDOMIZE TIMER
''Example:'' RANDOMIZE TIMER
  Using a [[TIMER]] value insures that the starting return values are different every time the RND function is used. Otherwise they would always be the same!
  Using a [[TIMER]] value insures that the starting return values are different every time.  
Otherwise they would always be the same!

Revision as of 03:41, 28 August 2009

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

Syntax: RANDOMIZE seednumber

Example: RANDOMIZE TIMER

Using a TIMER value insures that the starting return values are different every time. 

Otherwise they would always be the same!