lua-users home
lua-l archive

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



On 3/16/2010 11:18 AM, Geoff Leyland wrote:

On windows I got the same results as Christopher.

Lua just uses the system's rand, and what you're learning is that rand isn't a great random number generator, and that Windows' implementation is not the best.  lhf's lrandom is surely better: http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
Even a poorly designed random number generator should generate different streams from different seeds. Is it possible that lua is not passing the seed off to the system's random function properly in some implementations?