4 Replies Latest reply on Jun 25, 2008 3:26 AM by Newsgroup_User

    How do I make a range of numbers?

    beesbane Level 1
      I am creating a flash game, and I can't seem to get a range to work correctly. I have an object that needs to be collected. once you touch it, it randomly regenerates on the y axis. That all works fine, however I'd like it to regenerate between lets say 50 and 400 because otherwise it overlaps a menu bar.

      I think I could use the Math.random() method, but I can't figure how to get it to work in the sense I'd like it to. What should I change what I have to?