Block hash (of the draw)
Breaking it into 4-symbol sequences in each sequence
Each of the resulting sequences (starting from the end) is converted from the hexadecimal to the decimal system. The numbers obtained are divided by 20 with the remainder (or by 4 for the last iteration), the remainder of the division is the number of the ball. In case of the same number, it gets discarded and then the next number is used.