random coprime - part-cw/lambdanative GitHub Wiki
(random-coprime n)
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
Returns a random integer less than the argument, and relatively prime to it.
| Parameter | Description |
|---|---|
| n | integer |
> (random-coprime 9)
8
> (coprime? 8 9)
#t