fix Random.rand(1.0) behavior
Merge pull request #1588 from tduehr/rand_fix

fix Random.rand(1.0) behavior.  Thanks.  Took me a while to trace through this and resolve it against MRI but it looks the it is doing the same thing and all tests pass!