fixed Math.random() corner case
Merge pull request #85 from fxa/master

Math.random() corner case.