Implement rand
Merge pull request #74 from patrickgombert/rand

Implement rand