Would like help creating an "odds system"
Posted: Wed Mar 04, 2009 1:17 pm
Hi all,
I'm programming a game of Chnace in PHP, but would like to know how to create a system whereby chances are involved.
As an example, let's just say i want:
x to have a 1 in 100 chance of appearing, y a 1 in 25 and z 1 in 2, and then anything else to be w.
Any help would be much appreciated,
-Andrew-
I'm programming a game of Chnace in PHP, but would like to know how to create a system whereby chances are involved.
As an example, let's just say i want:
x to have a 1 in 100 chance of appearing, y a 1 in 25 and z 1 in 2, and then anything else to be w.
Any help would be much appreciated,
-Andrew-