slightly improve rand(Range1) by not changing the type of r
for #3751
the call to applicable() still dominates though