I want to generate a 6 digit random number using the PHP mt_rand() function.
mt_rand()
I know the PHP mt_rand() function only takes 2 parameters: a <
as far as understood, it should be like that;
function rand6($min,$max){ $num = array(); for($i=0 ;i<6;i++){ $num[]=mt_rand($max,$min); } return $num; }