remove all instances of mt_rand