|
  QuickSCREEN       Details       Example       Contents       Index |
| ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
| RND Function Details |
|
| Syntax |
|   RND[(n)] |
|   |
| The value of n determines how RND generates the next random number: |
|   |
|   Argument         Number Returned |
|   n < 0            Always returns the same number for any given n |
|   |
|   0 or n omitted   Returns the next random number in the sequence |
|   |
|   n = 0            Returns the last number generated |
|   |
| Even if n>0, the same sequence of random numbers is generated each |
| time the program is run unless you initialize the random-number |
| generator each time you run the program. (See the  RANDOMIZE |
| statement for more information about initializing the random-number |
| generator.) |
|   |
| To produce random integers in a given range, use the formula |
|   |
|   INT ((upperbound - lowerbound + 1)*RND + lowerbound) |
|   |
| where upperbound is the highest number in the range, and lowerbound |
| is the lowest number in the range. |
|   |