Well, random() has two meanings then, and the Math.random() function is
more generally useful than random() (for example, if you need a random
floating-point number). That said, I'd love a Math.randomInt() function.

―
Mike Keesey

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
> Sent: Thursday, September 21, 2006 12:22 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Working on Flash 6 player but not on Flash
8
> 
> > instead of random(x), you should use
> > Math.floor(Math.random() * x).
> 
> Which makes me wonder why random() is deprecated.  They really think
> that Math.floor(Math.random() * x) is better than random()?
Ridiculous!
> The sign of a great API is its simplicity.
> _______________________________________________
> [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

_______________________________________________
[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

Reply via email to