Fix integer generator to generate uniform numbers

?RANDOM:uniform(0, Number) is sufficient for random number generation.

This fixes random number generation case:
http://erlang.org/pipermail/erlang-questions/2012-September/069104.html