50 Chapter 2: Math Operations
7302ENG.DOC CH2 Math Operations, English Julie Hewlett Revised: 07/29/98 11:58 AM Printed: 05/19/99 8:58
AM Page 50 of 32
Generate a sequence of random numbers using whatever value
happens to be the current seed.
:1""1
bbb
Generate a sequence of random numbers using seed=1.
:1X1"
"1b1""1
bb
randInt( randInt( 1
"
"
2 2
Generates a random integer between lower and upper (both
integers) boundaries.
The random integer returned may be one of the boundaries.
For example, randInt(1,5) may return 1, 2, 3, 4, or 5.
To generate more than one random integer, specify
#ofIntegers, a positive whole number >0.
randInt(lower,upper[,#ofIntegers])
Find a random integer from 2 through 10.
:1""2
2¡10Eb
Find 4 random integers from 2
through 10. (Recall and edit the
last entry.)
-£!¡4E
b
³
³
³
³
Your result
may vary.
Your result may
vary.
Your results
may vary.