Skip to content
Chris Petersen edited this page Oct 21, 2015 · 1 revision

Returns a random prime between the lower bound (inclusive) and upper bound (exclusive).

Parameter Description
lo lower integer bound
hi upper integer bound

Example

> (random-prime 127 300)
277
> (random-prime 127 300)
179
Clone this wiki locally