Hi! I'm new to this forum so pls be gentle :)
I'm making a simulation game that based on % chances. So what i'm wondering is what follows:
1. Is choose(1,2) the same with floor(random(1,3))? - what im trying to accomplish here is there's a 50% chance of pick 1 or 2.
2. How about balance/fair chances, does this two conditioning the same 50%:
Variable: Percentage
floor(random(1,3))
if Percentage is 1, then shoot
if Percentage is 2, then miss
floor(random(1,11))
if Percentage is <= 5, then shoot
if Percentage is >= 6, then miss
Thank you in advance! :D