support ranges for rand & rand_i
Behave the same as Ruby's rand when passed 0.