up previous next
RandomSmallPrime --
Random prime between 5 and N
|
RandomSmallPrime(N: INT): INT |
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.
/**/ RandomSmallPrime(99);
43
|