20060301
2-4-8
Function Calculations
u
“RandSeed” Command
• You can specify an integer from 0 to 9 for the argument of this command. 0 specifies non-
sequential random number generation. An integer from 1 to 9 uses the specified value as
a seed for specification of sequential random numbers. The initial default argument for this
command is 0.
• The numbers generated by the ClassPad immediately after you specify sequential random
number generation always follow the same random pattern.
Problem
Use this keyboard:
Operation
mth abc cat 2D
Generate sequential random
numbers using 3 as the
seed value.
Cmd [RandSeed] 3
w
Generate the first value.
Generate the second value.
Generate the third value.
Func [rand]
w
[rand]
w
[rand]
w
Tip
• Random values generated by these commands are pseudo random values.
• The arguments a and b of “rand(a,b)” and “randList(n,a,b)” must be integers, subject to the
following conditions.
a < b
a
,
b
< 1
E
10
b – a < 1
E
10