Faster implementation of rand(Range1)

Faster & simpler implementation of rand(Range1), and it strictly guarantees equal probabilities of choosing each integer within the range.

My benchmark shows that it is about 1.7x - 2.1x faster than the original implementation.