Mining works thru solving a puzzles and you have to compete to get the reward. It's all about guessing, the more you guess, the more lucky you are.