Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to adjust the luck statistic #99

Open
FlySquare opened this issue Sep 7, 2020 · 1 comment
Open

how to adjust the luck statistic #99

FlySquare opened this issue Sep 7, 2020 · 1 comment

Comments

@FlySquare
Copy link

Hi,how can I adjust the chances of episodes on the wheel? for example, if Box A comes out with a 99% probability, box b comes out with a 1% probability

@zarocknz
Copy link
Owner

zarocknz commented Sep 9, 2020

Hello.

Please take a look at this tutorial http://dougtesting.net/winwheel/docs/tut14_setting_the_prize

How exactly you would like to figure out the probability is up to you. Do you want it truly random? maybe you want to assign prizes from a pool in the database and once won the prize is no longer available?? there are many options.

One simple way would be to pick a random number between 1 and 100. If its 1-99 then its box A, if 100 then box B like discussed near the start of this article https://www.mathsisfun.com/percentage.html

Might be better ways to do it if you want a purely mathematical solution. Google is your friend in this case :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants