Quote:
Originally Posted by BlueMelon
PHP Code:
temp.number = (random(0, 1) < 0.5 ? 5:10);
|
I was going to post about ternary, but Chris obviously knows what it is and I think such a thing is lost on the level that Greggiles is scripting at. But if you're going to post it in the attempt of helping then you should explain what it is and why it's useful.