Difference between revisions of "RANDOMIZE"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
Line 1: Line 1:
'''RANDOMIZE''' is used with a seed number to generate random([[RND]]) numbers.
'''RANDOMIZE''' is used with a seed number to generate random([[RND]]) numbers.


''Syntax:'' RANDOMIZE seednumber
''Syntax:'' RANDOMIZE seednumber


''Example:'' RANDOMIZE TIMER
''Example:'' RANDOMIZE TIMER
Using a [[TIMER]] value ensures that the starting return values are different
 
every time. Otherwise they would always be the same!
 
Using a [[TIMER]] value ensures that the starting return values are different
every time. Otherwise they would always be the same!
 
 
 
 
==Navigation:==
 
[[Keyword_Reference_-_Alphabetical|Go to Keyword Reference - Alphabetical]]
 
[[Keyword Reference - By usage|Go to Keyword Reference - By usage]]

Revision as of 04:37, 31 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!



Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage