Random numbers are supported through the random_stream
interface.
In randstream.cecil:
random_stream
is an infinitely-long stream of ints in the
range 0 to range-1 inclusive. The initial seed of the random stream
can be set upon creation, to generate reproducible random streams.