Math.random() * Math.random() in AS3
var rand:Number = Math.random() * Math.random() * Math.random(); This is a trick I use when I need more contrast in my random numbers. In this case, the variable rand will get closer to the number 1 significantly less frequently than if you just used Math.random() once. To illustrate this I created this snippet: [SWF(width=800, height=600)] [...]





