7 Replies Latest reply on Dec 9, 2006 5:16 AM by Newsgroup_User

    random() between 10 and 33 ???

    Ricky2k7
      hi,

      i want to create a button that play's a random frame between 10 and 33, i added this code to the button:
      on (release)
      {
      gotoAndPlay(random(10)+23);
      }

      but it only paly's frame over 23 and less than 32!!!

      what am i doing wrong?