var/miss=(rand(1,100))
if(miss >= 1 && miss <= 50)
Problem description: Why doesn't this work, and how could you simplify?
ID:145916
Nov 5 2005, 7:57 am
|
|
Code:
var/miss=(rand(1,100)) Problem description: Why doesn't this work, and how could you simplify? |
Nov 5 2005, 8:04 am
|
|
You could use the prob() proc. Look at its entry in the reference to see how it works.
|
In response to Jon88
|
|
I simply stared at the prob() proc a few times, never understood it.. :/ Could some of you give me an example, please?
|
In response to Mysame
|
|
Mysame wrote:
I simply stared at the prob() proc a few times, never understood it.. :/ Could some of you give me an example, please? if(prob(50)) |
In response to Jon88
|
|
Ty ^^
|