keen/random/random

Source
random interface mut
next nat32(max-exclusive nat32)
next nat64(max-exclusive nat64)
next-bit bool()
next32 nat32()
next64 nat64()

Functions for using randoms are in 'keen/random/util'. This interface has a variety of functions to maximize performance; implementations need to maintain state to support the functions with max-exclusive while a plain next32 or next64 is often simpler internally.

generator-util.keen can help implement this interface based on just next32 or next64.