Thread
:
Random number draw
View Single Post
#
10
12-20-2012, 02:45 AM
BlueMelon
asdfg
Join Date: Sep 2008
Posts: 1,481
PHP Code:
temp
.
number
= (
random
(
0
,
1
) <
0.5
?
5
:
10
);
Edit:
For more information on the ternary operator.
http://en.wikipedia.org/wiki/Ternary_operator
__________________
http://i.imgur.com/OOJbW.jpg
Last edited by BlueMelon; 12-20-2012 at
04:34 AM
..
BlueMelon
View Public Profile
View GraalOnline Profile
Find all posts by BlueMelon