In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Math.random() * Number >> 0

@author Takashi Murai(KAYAC)
Get Adobe Flash player
by Murai 17 Nov 2009
/**
 * Copyright Murai ( http://wonderfl.net/user/Murai )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/sMJz
 */

// forked from Murai's 0 to .5 to 0
// forked from Murai's Math.random() - Math.random() 
package {
    import flash.display.*;
    import flash.text.*;
    /*
        @author Takashi Murai(KAYAC)
    */
    [SWF(width="400", height="400", frameRate="24", backgroundColor="#FFFFFF")]
    
    public class Main extends Sprite {
          public var txt:TextField;
     
        public function Main() {
            init();         
        }
         
         public function init():void{
             txt = new TextField();
             txt.width = 400;
             txt.height = 400;
             addChild(txt);
             var i:uint=100
             while(--i){
                 txt.appendText((Math.random()*5 >> 0)+"\n");
             }
         }
    }
}