call proper randg() method
Merge pull request #196 from alyst/patch-1

call proper randg() method