China Naming Network - Almanac query - How did the lottery software change the code?
How did the lottery software change the code?
Then your process can only draw twenty people at most.
Use the database to record the names of lottery winners and the numbers drawn twice in a row, and then use the random function.
Randomize This is a random seed. When using random functions, remember to add this in front.
Rand( 1, 10)' This is a randomly generated number 1- 10. Every time a random number is generated, you should judge whether it already exists in the database (it has been extracted twice in a row). Of course, before the next time, you should also judge whether the user has extracted it.