change to mt_rand