Which version of actionscript? And in whats the context? 

The only thing that dosnt look like it will directlty port over is the
rand.nextInt() but you can use Math.rand() the rest is basic maths stuff you
can do in actionscript.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: 02 November 2006 17:15
To: 'Flashcoders mailing list'
Subject: [Flashcoders] OT conver java code to flash

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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to