hey guys, I am trying to do a gable system in php for one of my mmo websites but I'm kinda stuck and would appreciate if you could help me out with this. So basically what I need is a script that will tell me if the user wins or looses. I already have the winning percentage value, I get this depending on how many credits the user is going to gamble, but that part is already done. so for example, lets say my user wants to gamble with 500 credits, and he will get 12% chance of winning. My question is, how can I make a code that will use that 12% chance of winning to decide if the user is a winner or not? any help will be greatly appreciated !