Casio ClassPad 300 User Manual page 114

Classpad300
Hide thumbs Also See for ClassPad 300:
Table of Contents

Advertisement

u "rand" Function
• The "rand" function generates random numbers. If you do not specify an argument, "rand"
generates 10-digit decimal values 0 or greater and less than 1.
Specifying two integer values for the argument generates random numbers between them.
Problem
Generate random numbers
between 0 and 1.
Generate random integers
between 1 and 6.
u "randList" Function
Syntax: randList (n [, a, b])
Function:
• Omitting arguments "a" and "b" returns a list of
values.
• Specifying arguments "a" and "b" returns a list of
values in the range of "a" through "b".
Description:
n
• "
" must be a positive integer.
• The random numbers of each element are generated in accordance with "RandSeed"
specifications, as with the "rand" function.
Problem
Generate a list of three
elements that contain
decimal random values.
Generate a list of five
elements that contain
random values in the range
of 1 through 6.
2-4-7
Function Calculations
Use this keyboard:
mth
abc
cat
Func
Func
n
elements that contain decimal random
n
elements that contain integer random
Use this keyboard:
mth
abc
cat
Func
Func
20021201
Operation
2D
[rand] w
[rand] 1 , 6 w
Operation
2D
[randList] 3 w
[randList] 5, 1, 6 w

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents