Basically, there's a random variable that changes from 1 to 2 randomly when you flip the coin. After that the costume is switched to that number (so heads is 1 and tails is 2). If you get heads, you get a random number between 10-25, and if u get tails, u get a random number between 5-10/