Php gets the previous random number. php gets the previous random number. & lt ;? Php & nbsp; echo & nbsp; ". rand (10000, & nbsp; 9999900000000000)."; & nbsp ;}? & Gt; this is a random display of a group number & nbsp; for example, the result of refreshing is & n php getting the previous random number.
Php gets the previous random number
Echo ". rand (10000,999 9900000000000 ).";
}
?>
This is to randomly display the number of a group. for example, if the refresh request is 2222222
What should I do if I want to call this 2222222?
------ Solution --------------------
Just save the previous random number.
------ Solution --------------------
$ Temp = rand (10000,999 9900000000000 );
Echo $ temp;
}
?>
------ Solution --------------------
/* If you need a random number, you can consider storing the random number in the array.
If your random number needs to be transferred across pages, it is recommended that you exist in the global array SESSION */
$ T = rand (1000,7000 );
$ _ SESSION [] = $ t;
Print_r ($ _ SESSION );
?>