The so-called “mining” of crypto is based on a lottery. The more electricity you burn the more random numbers you generate, the better your chances.