Ask for code, ask for code, ask for code!!
鹿先生
鹿先生 2019-03-15 11:52:51
0
6
1553

Generate a random number from 1 to 60, take out the duplicates and ask for the boss to appear. Generate a random number from 1 to 60, take out the duplicates and ask for the boss to appear!!

Generate a 1-60 Random numbers, take out the duplicates and ask for the boss to appear and generate a random number between 1 and 60. Take out the duplicates and ask for the boss to appear!!

Generate a random number between 1 and 60 and take out the duplicates. Please generate a random number from 1 to 60, and remove the duplicates. Please show up.

鹿先生
鹿先生

reply all(3)
小灰

$a = [];

for($i = 0;$i<60;$i++){

$a[] = rand(1, 60);

}

$b = array_count_values($a);

var_dump($b);

//I don’t know what you want to do with duplicates What, but this way you can see how many times each one appears, and the ones >1 are all repeated, haha

从入门到删库跑路

I don’t understand this requirement

  • reply Just generate 60 numbers randomly, there may be duplicates, and take out the duplicates.
    鹿先生 author 2019-03-18 11:27:13
藏色散人

echo rand(1, 60);       

// Generate a random number between 1000000~9999999

  • reply is 1 to 60 ==
    藏色散人 author 2019-03-15 17:19:43
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template