call proper randg() method