Use rand(Uint32) for small ranges.

and tests test/random.jl.