Random Numbers

Generating Random Numbers

Generating random numbers is done in the MATH menu under the PRB option of your calculator. There are 4 kinds of random variables you can generate from this menu. They are uniform, integers, normal, and binomial.

1. By selecting rand you can generate numbers from a continuous uniform distribution on the interval [0,1].

2.randInt
syntax: randInt(a, b, #)
a is the lower limitof the interval from which the samples are generated from.
b is the upper limit of the interval from which the samples are generated from.
# the ammount of random integers to be generated.
If no arguement is given for # then only 1 number is generated.

3.randNorm
syntax: randNorm(mu, sigma, #)
mu the mean of the normal distribution from which the samples are generated from.
sigm is the standard deviation from the normal distribution from which the samples are generated from.
# the ammount of normal random variables to be generated.
If no arguement is given for # then only 1 number is generated.

4.randBin
syntax: randBin(n, p, #)
n is the total number of independent trials in the binomail experiment.
p is the probability of success in each independent trial.
# the ammount of integers to be generated.
If no arguement is given for # then only 1 number is generated.