I'm making a little online game and there is a part which involves checking different variables and ending up with $percentageChance (some value between 0 and 1).
My question is how do I actually use this value to decide if someone was successful or not. I know it's something probably quite simple but I can't think what.
My question is how do I actually use this value to decide if someone was successful or not. I know it's something probably quite simple but I can't think what.
