lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thank you.
    I have my own solution integrated in script host. My mail is just a notice to peoples here.

--------------------------------------------------
From: "Luiz Henrique de Figueiredo" <lhf@tecgraf.puc-rio.br>
Sent: Tuesday, March 10, 2009 11:32 AM
To: "Lua list" <lua@bazar2.conectiva.com.br>
Subject: Re: math.random(<greater than RAND_MAX>)

>>   that means this function cannot provide enough precision when you expect result range border than RAND_MAX
> 
> If you want a better random number generator, see my lrandom, which
> binds to the Mersenne Twister and provides full double precision
> (and better statistical properties):
> http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
>