Generating Random Numbers : Math : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Math »

 

Generating Random Numbers


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var randomFloat:Number = Math.random() 2;
        
        var nRandomFloat:Number = Math.random() 45;
        
        trace(nRandomFloat);

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» Math