The requirement a hash must meet corresponds to the difficulty. … A miner can, in theory, get lucky and obtain a valid hash for a given block on the first try. However, over time, higher difficulty means that miners must plug through more nonces per block on average .