<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/templates/xsl/lab.xsl"?>
<entry>
	<title>sine &amp; time modified random particles (haXe &amp; flash 10).</title>
	<swf>
		<url>Random.swf</url>
		<width>800</width>
		<height>450</height>
	</swf>
	<info>
    <p>
    	This example is quite simply a visual representation of 1,536,000 calls to Math.random(), each set of 3 values is taken as x,y,z co-ordinates of a particle, scaled up to fit on screen then rendered. Thus creating 512,000 particles.
    </p>
	</info>
	<sources>
		<snip>
<pre>for( i in 0...PARTICLES ) {
	x = ( ( Math.random() + Math.sin(i/PARTICLES) ) / 2 ) * SCALE;
	y = ( ( Math.random() + Math.sin(i/PARTICLES) ) / 2 ) * SCALE;
	z = ( ( Math.random() + Math.sin(i/PARTICLES) ) / 2 ) * SCALE;
}</pre>
		</snip>
	</sources>
</entry>
