mt_rand

// mt_rand — Generate a random value via the Mersenne Twister Random Number Generator

mt_rand(1, 10); // generates a random number of 1 to 10;
Yingfufu