随机取正负数

for (var i:int=0; i<100; i++)
{
	trace((Math.random()>0.5?-1:1)* Math.random());
}
原文地址:https://www.cnblogs.com/602147629/p/1952339.html