( "rand" :dir :teachpacks)
This teachpack provides functional pseudorandom number generation.
Produces a starting point for the pseudorandom number generator.
|(next-seed seed) →|
Updates the pseudorandom seed. Call after each use of rand to avoid reusing a seed value.
|(rand max seed) →|
Produces a number between 0 and ( max), dependent on seed.