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.
$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
echo rand(1, 60);
// Generate a random number between 1000000~9999999