How to shake the number in Fuzhou Sanmu Middle School?

Yaohao rule

(1) forms a closed loop with the random number 1 to n of the students participating in the lottery in a specific school (when the maximum number circulates to the minimum number for the first time, the number 1 can be equivalent to n+ 1, the number 2 can be equivalent to n+2, and the number 3 can be equivalent to n+3; When the maximum number circulates to the minimum number for the second time, the number 1 can be equivalent to 2n+ 1, the number 2 can be equivalent to 2n+2, the number 3 can be equivalent to 2n+3, and so on).

(2) On-site media representatives, NPC representatives (CPPCC members), parents of students (selected from parents of students present) 1 person respectively select one, ten, hundreds and thousands of digits from ten numbered balls (built-in digits range from 0 to 90) to form a number. Students with the same random numbers (00 1 or 000 1 for 1, 002 or 0002 for 2...099 or 0099 for 99, and so on, 0999 for 999) are the first students to be admitted by lottery. The random number of students who register for the first time must be generated within the number of students who participate in the lottery in a specific lottery school (1 to n). In order to ensure that the number drawn first is valid, the invalid number should be eliminated first when drawing lots later. That is to say, the unit is the best, and the number of people participating in the distribution decreases in turn (for example, the number of people participating in the distribution is 1003, if the number of people is 6, 10, 8, 100, 1, then the number of thousands is 1, which can only be 0; If all digits, tens and hundreds are zeros, then the thousands of zeros are invalid, and the thousands can only be 1. For example, the number of students participating in the allocation is 845. If the number of students is 6 and the number of students is 8, then the percentiles 8 and 9 are invalid numbers, and the percentile can only be extracted from the numbers between 0 and 7).

(3) The second admission is the random number+arithmetic number of the first admission, the third admission is the random number+arithmetic number of the second admission, and the fourth admission is the random number+arithmetic number of the third admission, and so on, until the enrollment plan of the lottery is completed (for example, a school allocates 250 students and the number of participants in the lottery is 178). Then 1777 divided by 250 equals 7. 108, rounded to 8, and the arithmetic number is 8. The number generated by the representatives of all parties is 1, the decimal number is 6, the hundredth number is 7, and the thousandth number is 1. Then the random number of the 1 lottery is 176 1, the second lottery is 1769, the third lottery is 1777, the fourth lottery is 8, and the 225th lottery is 177.

(4) If there is a continuous cycle of under-recruitment (which may occur when the allocated quota is an arithmetic integer multiple), the remaining lottery admission plans will continue to admit the consecutive numbers after the first admission of students (that is, the arithmetic is 1) until the number of lottery admission plans is completed (for example, a school allocates 250 students and the number of students participating in the lottery is 1776). Then 1776 divided by 250 equals 7. 104, rounded to 8, the arithmetic number is 8. The number generated by the representatives of all parties is 1, the decimal number is 6, the hundredth number is 7, and the thousandth number is 1. Then the random number of the 1 lottery is 176 1, the second lottery is 1769, the third lottery is 1, the fourth lottery is 9, and the 222nd lottery is 65438. No.222 1753 was admitted, and it was impossible to continue the admission. At this time, continuous random numbers after 176 1 are added until 250 people are admitted. That is to say, the random numbers are 1762, 1763, 1764, 1765, 1766, 1767,1767. 1774, 1775, 1776, 2, 3, 4, 5, 6, 7, 8, 10, 1 1, 65438+.