switched to mt_rand