20090601
S
“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
U
s
e thi
s
keyboard:
Operation
mth
abc
cat
2D
Generate sequential random
numbers using 3 as the
seed value.
Cmd
[RandSeed]
3
U
Generate the first value.
Generate the second value.
Generate the third value.
Func
[rand]
U
[rand]
U
[rand]
U
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
I
Integer Function
s
These functions take integers only as their arguments and return integers.
S
“iGcd” Function
Syntax:
iGcd(Exp-1, Exp-2[, Exp-3…Exp-10)]
(Exp-1 through Exp-10 all are integers.)
iGcd(List-1, List-2[, List-3…List-10)]
(All elements of List-1 through List-10 are integers.)
Function:
• The first syntax above returns the greatest common divisor for two to ten integers.
• The second syntax returns, in list format, the greatest common divisor (GCD) for each of
the elements in two to ten lists. When the arguments are {
a
,
b
}, {
c
,
d
}, for example, a list will
be returned showing the GCD for
a
and
c
, and for
b
and
d
.
De
s
cription:
• All of the lists must have the same number of elements.
• When using the “iGcd(List-1, List-2[, List-3…List-10)]” syntax, one (and only one)
expression (Exp) can be include as an argument in place of a list.
2-4-9
Function Calculations
Summary of Contents for ClassPad 330
Page 11: ...20060301 20090601 ClassPad 330 ClassPad OS Version 3 04 ...
Page 277: ...20060301 3 3 10 Storing Functions 3 Tap AND Plot OR Plot ...
Page 779: ...20090601 S Graph Line Clustered C S Graph Line Stacked E 13 9 2 Graphing ...
Page 780: ...20090601 S Graph Line 100 Stacked F S Graph Column Clustered G 13 9 3 Graphing ...
Page 781: ...20090601 S Graph Column Stacked I S Graph Column 100 Stacked J 13 9 4 Graphing ...
Page 782: ...20090601 S Graph Bar Clustered K S Graph Bar Stacked 9 13 9 5 Graphing ...