We can see that there are only one prize for 1-6 and six prize for 7. The Pointer Points to the position by default, which is recorded as 0 °. Each award corresponds to a different angle. The circle angle is 360 °, which is divided into 12 parts, so each part is 30 °. To prevent the pointer from pointing to the line between two adjacent directions, the minimum angle recorded as the first prize is 1 ° and the maximum angle is 29 °. You can also find other prizes.
We can see that there are only one prize for 1-6 and six prize for 7. The Pointer Points to the position by default, which is recorded as 0 °. Each award corresponds to a different angle. The circle angle is 360 °, which is divided into 12 parts, so each part is 30 °. To prevent the pointer from pointing to the line between two adjacent directions, the minimum angle recorded as the first prize is 1 ° and the maximum angle is 29 °. You can also find other prizes.
We can see that there are only one prize for 1-6 and six prize for 7. The Pointer Points to the position by default, which is recorded as 0 °.
Each award corresponds to a different angle. The circle angle is 360 °, which is divided into 12 parts, so each part is 30 °.
To prevent the pointer from pointing to the line between two adjacent directions, the minimum angle recorded as the first prize is 1 ° and the maximum angle is 29 °. In the same way, we can find out other awards. Note that there are 6 7 and other awards.
Then, each award has a different probability of winning the prize. we will obtain the award based on the probability (the probability can be set to 0, you know ~), After obtaining the prize, a random number is generated based on the maximum and minimum angles to let the pointer rotate ..
All codes in: http://www.cnsecer.com/7831.html ThinkPHP
Lucky big Turntable