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

Returns a random integer less than the argument, and relatively prime to it.

Parameter Description
n integer

Example

> (random-coprime 9)
8
> (coprime? 8 9)
#t
Clone this wiki locally