!
A factorial, n!, is the product of the positive
integers from 1 to n. The value of n must be a
positive whole number { 69. When n = 0, n! = 1
nCr
Calculates the number of possible combinations
given n and r, non-negative integers. The order of
objects is not important, as in a hand of cards.
nPr
Calculates the number of possible permutations of
n items taken r at a time, given n and r, non-
negative integers. The order of objects is
important, as in a race.
% displays a menu with the following options:
rand
Generates a random real number between 0 and
1. To control a sequence of random numbers, store
an integer (seed value) | 0 to rand. The seed value
changes randomly every time a random number is
generated.
randint(
Generates a random integer between two
integers, A and B, where A { randint { B. The
arguments of the function are:
randint(integerA,integerB)
Examples
! 4 H <
nCr 52 H H 5
<
nPr 8 H H H 3 <
Store value
to rand
5 L %
1 (Selects rand)
<
Math Functions 41