lua-users home
lua-l archive

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


>   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/