July TC39 meeting notes, day 1

Juan Ignacio Dopazo dopazo.juan at gmail.com
Thu Jul 28 06:01:28 PDT 2011


On Thu, Jul 28, 2011 at 1:21 AM, Brendan Eich <brendan at mozilla.com> wrote:

> Math functions

...
>

Can I add a request? Math.randomInt(n) returning [0, n) would be a nice
addition. Additionally but not necessarily, it could accept an optional
extra parameter for Math.randomInt(from, to). Most of the time, when writing
games or simple applications a random integer is a lot more useful than a
float.

Juan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110728/be569935/attachment.html>


More information about the es-discuss mailing list