Skip to content

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 it
Typed signatures
TypePackageApplies
(integer, integer?) random -> integercompute-enginealways

Domain: Compute engine

Plot

About