rand() was already used here and I just refactored the code, I'll take a look at mt_rand() and follow up on this