Thanks for the fast replay.
Is the block id not a problem when there are many transitions? So all users in the block will win the same amount.
Not the block number, but the block hash. The last 64 bits of the block hash are completely random and unpredictable.