ActionScript 3 Random Value Generation Random number between 0 and 1


Example

Math.random();

produces an evenly distributed random number between 0 (inclusive) and 1 (exclusive)

Example output:

  • 0.22282187035307288
  • 0.3948539895936847
  • 0.9987191134132445