TI-82: Generating Random Numbers
Subject:
Statistics [1]
Tags:
TI-82 [3]
You can generate random numbers on the TI-82 calculator using the following sequence. N is the number of different values which could be and S is the minimum number.
int (N*rand+S)
INT is found under the MATH menu (math num 4). RAND is also found under the MATH menu (math prb 1).
Simulate the rolling of a die (1-6): int (6*rand+1)
Simulate the flipping of a coin (0-1): int (2*rand)
This works because the rand function returns a random number between 0 and 1 (including 0 but not including 1). When it is multiplied by N, it becomes between 0 and N, and then S is added, so it becomes between S and S+N.
If you have two values (A and B) that you need random numbers between, then you can generate them using the following formulas.
N=B-A+1
int (N*rand+A)