Faster implementation of rand(Range1)
Merge pull request #3779 from lindahua/dh/randrg1

Faster implementation of rand(Range1)