ID:152275
![]() Jun 11 2007, 5:37 pm
|
|
Can decimal numbers be correctly intepretted in prob()?
|
He can't when he wants decimals. Or he could use a custom one like,
proc |
Is that speed wise, readability-wise, or both?
I always wondered how fast "if(!rand(0,175))" would be compared to the standard methods. |
Both. prob is built for this type of stuff, and you don't have to do any extra work to figure out what chance you want.
|
When in doubt, test!
var Sorry for ever doubting you, Foomer, but I had to see for myself. |
if(rand(1,1000)==1)