Someone should just make a dll to use mt_rand.