fix #121
Merge pull request #123 from StDako/master

fix #121 (duplicate of random function)