RandomPrime
Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand. No examples yet — the crosswalk is the reason it has a page.
Return a random prime. RandomPrime(n) draws a prime in [2, n]; RandomPrime(m, n) draws a prime in [m, n]. Undefined if the range contains no prime.
RandomPrime(integer, integer?) random -> integeras compute-engine declares itTyped signatures
| Type | Package | Applies |
|---|---|---|
(integer, integer?) random -> integer | compute-engine | always |