Algorithm for 13 numbers roulette
Budget: $50 – $0 USD
I am creating a 13 number roulette game in Unity and I need an algorithm that calculates the prizes in 5000 spins for a percentage that I can configure. For example: If I set the prizes to 90%, then of all the 5000 spins bets the player will win 90% of those bets.
The maximum bet per number is 30 bets. The prizes will be divided into large prizes (> = 15 bets), medium prizes (> = 5 and <15) and small prizes (> 0 and <5 <). The amount of big or small prizes will also be configurable.
What I need is to call a function that returns me the winning or non-winning number depending on the percentages previously configured.
The maximum bet per number is 30 bets. The prizes will be divided into large prizes (> = 15 bets), medium prizes (> = 5 and <15) and small prizes (> 0 and <5 <). The amount of big or small prizes will also be configurable.
What I need is to call a function that returns me the winning or non-winning number depending on the percentages previously configured.