Number クラスにある Math 系のメソッド

by bkzen
Number["random"]();
何のために追加されたの?
♥1 | Line 19 | Modified 2012-11-21 21:26:22 | MIT License
play

ActionScript3 source code

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

package {
    import flash.events.MouseEvent;
    import flash.events.Event;
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var txt:TextField = new TextField();
            txt.autoSize = "left";
            txt.text = "click";
            addChild(txt);
            stage.addEventListener(MouseEvent.CLICK, function():void{
                txt.text = Number["random"]() + "\n" + 
                (~[][{}])[<>{/./(/.. /({}))}{/.$/(/../({}))}{/./(/./([]))}{/./(/..$/(!{}))}{/.../(!!{})}{/../(/.. /({}))}{/.$/(/../({}))}{/.$/(/../(!!{}))}</>]
                [<>{/.$/(/../(!!{}))}{/.$/(/../(!{}))}{/.$/(/../([][{}]))}{/.$/([][{}])}{/.$/(/../({}))}{/.$/(/ .../((~[][{}])[<>{/./(/.. /({}))}{/.$/(/../({}))}{/./(/./([]))}{/./(/..$/(!{}))}{/.../(!!{})}{/../(/.. /({}))}{/.$/(/../({}))}{/.$/(/../(!!{}))}</>]))}</>]();
            });
            
        }
    }
}