better handling of "infinite" random data for integer generation (throw an exception)
working on tests for rng