JuliaLang/julia — pull request #3779 by lindahua (2013-07-21 20:04:20+00:00)
Title: 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.