# Block hash random drawing rules

Published Jan 16, 2023Updated Sep 4, 20232 min read
Take the last 8 digits of the hash of the first block of OKC at a certain point in time and compare the last 8 digits of the addresses of all participants. The closest N people win.
• Takes the last 8 digits of the block hash of the first OKC chain block after the activity specified time.
• Take the last 8 digits of the address of all participating users (if insufficient, add 0 back).
• The last 8 digits of the user address closest to the last 8 digits of the block hash is the winning user. The user with the minimum absolute value of 8 digits after the block hash minus the 8 digits after the user address is the winning user.
• If the number of people selected is greater than the number of winners, the larger number wins. If the last 8 digits are the same, the upper 9 digits of the address are selected. The highest number wins.

For example
• Suppose the block hash value selected for the draw is: 047363EC533E12EA88C0CB21636E2BAAB45AA9A6F3A12F77C7020475C119E6A6
• Filter out the letters in the hash value and take the last 8 digits as the winning sequence for the activity: 47511966
• The last eight digits of the addresses of four users are
• A: 47511960
• B: 47511972
• C: 47511960
• D: 32514021
If the quota is 3, ABC will be selected.
If the quota is 2, AC will be selected.
If the quota is 1, compare the 9th digit after the addresses of two AC users. The one with the highest number wins.