0

i am creating a slot machine with python and now I have the numbers 1-12, choosen randomly by "randint", the problem is now that some of the numbers (3,8,12) trigger an extremly high winning and now I want to add a "higher chance" for the rest of the numbers and for these winning numbers a lower chance. How do I realize this?

Regards, Simon

Apple Web
  • 55
  • 8
  • 1
    Spoken like a true slot machine designer ;) – miradulo Dec 08 '17 at 18:20
  • How do you want to realize it? It is up to you as the designer to pick the probabilities. Once you decide on the probabilities, it is easy to pick numbers according to those probabilities (just google "Python random numbers nonuniform probabilities") – John Coleman Dec 08 '17 at 18:20
  • It looks like you are just getting started. Consider posting some code for feedback next time, if you have specific questions. – boethius Dec 08 '17 at 18:37

0 Answers0