Thread
:
Random number draw
View Single Post
#
2
12-19-2012, 05:48 PM
scriptless
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
PHP Code:
//#CLIENTSIDE
function
onCreated
() {
this
.
number
=
int
(
random
(
1
,
2.9
))*
5
;
//5 or 10
}
I used 2.9 because it generates a decimal number, so the occurance of 2 would be less if it was just 2.0
scriptless
View Public Profile
View GraalOnline Profile
Find all posts by scriptless