up previous next
RandomSmallPrime    --    Random prime between 5 and N


Syntax
RandomSmallPrime(N: INT): INT

Description
This function returns a random prime in the range 5 to N (incl.). The distribution is uniform. N must be between 5 and 2^31-1.

Example
/**/ RandomSmallPrime(99);
43

See Also