Re: math.random(<greater than RAND_MAX>)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: math.random(<greater than RAND_MAX>)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2009年3月10日 00:32:54 -0300
> 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/