I’m having problem with generating random number. I always get a “3” when I run my codes. Can anyone help me ? Thanks
var num:Number = 3;
Math.ceil(Math.random()*num);
if(num == 1)
{
trace(“1”);
}
if(num == 2)
{
trace(“2”);
}
if(num == 3)
{
trace{“3”);
}