How Do I Make A Lottery System For My Game

Sounds like you could use loot tables…
Here: