The Not Secret Anymore Formula For Bitcoins Hard-Capped Supply. The role of miners is to secure the network and to process every Bitcoin transaction. Imagine entering a competition to complete a math equation before a bunch of other peers and the winner receives 50 points and a new more complex math problem is created and the race starts all over again.
In fact they are only math problems in the same sense that watching a Youtube video is doing a computation.
People worldwide use software that follows a mathematical formula to generate bitcoins also known as mining. The one in the previous answer. Miners are checking transactions of other users. A unique mathematical formula which models the bitcoin price precisely for more than 10 years before and more than 10 years after today.