Question
Random numbers
I have incorporated some javascript into a web app im working
on. The javascript function generates a random number between (l)ow
and (h)igh. I'd prefer to do this in coldfusion if its possible.
Here is the jscript code:
// generate a random number between l and h
function gen_random_number(l,h)
{
return Math.floor(Math.random()*h)+l;
}
Is there a colfusion equivalent ?
// generate a random number between l and h
function gen_random_number(l,h)
{
return Math.floor(Math.random()*h)+l;
}
Is there a colfusion equivalent ?
