r.randi is undefined, should be r.rand
Merge pull request #85 from brigand/patch-2

r.randi is undefined, should be r.rand