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

Random Numbers

Random numbers are a crucial part of games and some animations. Without them, the movie would play out in exactly the same fashion every time.

To make a random number, all you need to do is use the Math.random function. This returns a number between 0.0 and 1.0, but never exactly 1.0.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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