Run the script and wait for it to finish. You will get a file like this with 2,000 lines:

Now let's divide this sample into groups of 100 values and perform statistical analysis on each group. Nonce is a 32-bit number. It stands to reason that every bit of the nonce is equally likely to take a value of one or zero. This is what I am going to check. I will write a script that counts the number of ones in each bit position in a group of 100 nonces.

Reply to this note

Please Login to reply.

Discussion

You can see that some bits in the bitcoin nonce are not equally probable in their value and the graphs are shifted downwards. So the bit value is still slightly more likely to be zero than one.