
Код AS3:
for (var i:uint = 0; i < 1000; i++)
{
var p:Point = Point.polar(Math.random() * 200, Math.random() * 2 * Math.PI);
this.graphics.beginFill(0xFFCC99, 0.5);
this.graphics.drawCircle(p.x + 300, p.y / 2 + 300, 3);
this.graphics.endFill();
}
for (i = 0; i < 1000; i++)
{
var d:Number = Math.sqrt(Math.random());
var p2:Point = Point.polar(d * 200, Math.random() * 2 * Math.PI);
this.graphics.beginFill(0xFFCC99, 0.5);
this.graphics.drawCircle(p2.x + 800, p2.y / 2 + 300, 3);
this.graphics.endFill();
}