It uses the Mersenne Twister algorithm to generate "better" random numbers (i.e., more random), and is often preferred. $mtrand = mt_rand( ); $mtrandrange = mt_rand(1,100);?>