support ranges for rand & rand_i
Behave the same as Ruby's rand when passed 0.
Merge pull request #186 from josephwilk/ranges_in_random

support ranges for rand & rand_i