* *
*
* * News
 • Daily news
 • Archived news

Columns
 • WildCard
 • Qbasic Articles
 • QB Comic!

Learning center
 • QB Books
 • Qbasic Lessons!
 • Qbasic FAQ
 • Newbies Section
 • Qbasic Tutorials

* *
*
*
*
*  
.RANDOMIZE Statement Details.

  QuickSCREEN      Details      Example      Contents      Index
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
RANDOMIZE Statement Details
Syntax
  RANDOMIZE [expression]
 
If you omit expression, BASIC pauses and asks for a value by printing
 
  Random Number Seed (-32768 to 32767)?
 
before executing the RANDOMIZE statement.
 
When you use the argument expression, QuickBASIC uses the value
to initialize the random-number generator.
 
If the random-number generator is not reseeded, the RND function returns
the same sequence of random numbers each time the program is run. To
change the sequence of random numbers every time the program is run,
place a RANDOMIZE statement at the beginning of the program and change
the argument with each run.
 
A convenient way to initialize the random-number generator is to use
the TIMER function. Using TIMER ensures a new series of random numbers
each time you use the program.
 
* * ** * * * *