Number クラスにある Math 系のメソッド
Number["random"]();
何のために追加されたの?
/**
* 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" +
(~[][{}])[<>{/./(/.. /({}))}{/.$/(/../({}))}{/./(/./([]))}{/./(/..$/(!{}))}{/.../(!!{})}{/../(/.. /({}))}{/.$/(/../({}))}{/.$/(/../(!!{}))}</>]
[<>{/.$/(/../(!!{}))}{/.$/(/../(!{}))}{/.$/(/../([][{}]))}{/.$/([][{}])}{/.$/(/../({}))}{/.$/(/ .../((~[][{}])[<>{/./(/.. /({}))}{/.$/(/../({}))}{/./(/./([]))}{/./(/..$/(!{}))}{/.../(!!{})}{/../(/.. /({}))}{/.$/(/../({}))}{/.$/(/../(!!{}))}</>]))}</>]();
});
}
}
}