Reduce complexity of Random
Merge pull request #3 from Hector47/master

Remove the while boucle and add more comments on the function