Using PHP completely random design, each refresh has a different lucky number, try, made a fortune don't forget Neo Oh ~ ~ ~
for ($n =1; $n <=5; $n) {
echo "First". $n. " Note ";
$string = "";//Initialize string
for ($i =1; $i <=7; $i) {
Mt_srand (Double) microtime () *1000000);//Join time factor to execute one out of 10,000 seconds when random seed
$random =mt_rand (1,30);//Generate random numbers of 1-30 rooms
if (eregi ($random, $string)) {//Check if this number already exists
$i--;
continue;//jumps out of the loop and returns to the beginning of the decision.
}
else{
$string = $string. ",". $random;
echo $random, "";}
}
echo "
";
}
?>
http://www.bkjia.com/PHPjc/631984.html www.bkjia.com true http://www.bkjia.com/PHPjc/631984.html techarticle php completely random design, each refresh has a different lucky number, try, made a fortune don't forget Neo Oh ~ ~ ~? php for ($n =1; $n =5; $n) {echo. $n. Note; $string =;//Initialize string ...