Random percent reward command
#1

I wanted a basic command, for me to do something else that employee as follows:
The player / random, and have these chances of winning:
/*
0.10% = 1.000.000.000
1.90% = 50.000.000
3% = 500
5% = 25.000.000
10% = 100.000
15% = 50.000
25% = 60.000
40% = 30.000
total: 100%, random percents
*/
Reply
#2

Use the "random" code.
Like: example:

random(100);

0-40 gives 30000
41-65 gives 60000
66-80 gives 50000
...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)