Difference between revisions of "RANDOMIZE"

From QB64 Wiki
Jump to navigation Jump to search
Line 4: Line 4:
  
 
''Example:'' RANDOMIZE TIMER
 
''Example:'' RANDOMIZE TIMER
  Using a [[TIMER]] value insures that the starting return values are different every time.  
+
  Using a [[TIMER]] value ensures that the starting return values are different
Otherwise they would always be the same!
+
every time. Otherwise they would always be the same!

Revision as of 03:43, 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 ensures that the starting return values are different
every time. Otherwise they would always be the same!