• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Manipulating Information > Generating Random Numbers

Generating Random Numbers

When you need to incorporate random elements into your Flash movie, either for a design effect or for game play, you can use the Math object's Math.random method. The Math.random method generates random numbers between 0 and 1 with up to 15 decimal places in between. For example, typical return values are:

0.242343544598273


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint