|=

by Murai forked from Math.random() * Number >> 0 (diff: 9)
@author Takashi Murai(KAYAC)
♥0 | Line 24 | Modified 2010-02-11 22:00:38 | MIT License
play

ActionScript3 source code

/**
 * Copyright Murai ( http://wonderfl.net/user/Murai )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/7dua
 */

// forked from Murai's Math.random() * Number >> 0
// 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 n:Number;
             txt.appendText(n+"\n");
             n |= 2;
             txt.appendText(n+"\n");
             n |= 100;             txt.appendText(n+"\n");
             n |= undefined;             
             txt.appendText(n+"\n");
         }
    }
}