Random Code

number=Math.ceil(Math.random()*2);
if(number==1){
        _root.baddy.gotoAndStop(5);
}
if(number==2){
        _root.baddy.gotoAndStop(3);
}

can someone tell me whats wrong with this code please…