[erlang-questions] Math pow

Hynek Vychodil vychodil.hynek@REDACTED
Fri Apr 3 15:33:40 CEST 2009


try random:uniform(1 bsl 48) instead.

On Fri, Apr 3, 2009 at 2:49 PM, Kunthar <kunthar@REDACTED> wrote:

> New shell R13A:
> > random:uniform(math:pow(2, 48)).
> ** exception error: no function clause matching
> random:uniform(281474976710656.0)
>
> Old shell R12B:
> > random:uniform(math:pow(2, 48)).
> 44982915740374
>
> Any comments?
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



-- 
--Hynek (Pichi) Vychodil

Analyze your data in minutes. Share your insights instantly. Thrill your
boss.  Be a data hero!
Try Good Data now for free: www.gooddata.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090403/4f58e2d2/attachment.htm>


More information about the erlang-questions mailing list