Probably similar to:
var bestXPos:Number;
var numOfEqual:Number = (??); //whatever you set it to..
if ( Math.abs( random() ) % 10000 < (10000 / numOfEqual ) ) {
bestXPos = i;
}
On 11/2/06, Paul Steven <[EMAIL PROTECTED]> wrote:
Not familiar with Java code but trying to rewrite some code in Flash.
Anyone
convert this line to flash actionscript please
if (Math.abs(rand.nextInt()) % 10000 <
(10000 / numOfEqual))
bestXPos = i;
Thanks
Paul
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
--
: : ) Scott
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com