Alternative
RandomGen class with a modified
next
operation, and added
splitn and
level operations.
Using the generator requires that no more than one operation is called
on the same generator state, as the implementation does not guarantee
pseudorandomness otherwise. As an exception, calling
splitn
many times on the same generator state is allowed as long as the
'bits' argument is the same for all the calls.