lua-users home
lua-l archive

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


In Lua 5.1.4 on Windows XP, I get this (stock Lua, no C++, different machine than I used in my original report):

Seed: 3063121584        12      2356    6482    744
Seed: 2428144928        12      2356    6482    744
Seed: 3559301251        12      2356    6482    744
Seed: 4287790062        12      2356    6482    744
Seed: 2737803158        12      2356    6482    744
Seed: 2458923424        12      2356    6482    744


On 3/16/2010 11:13 AM, Lee Hickey wrote:
function tr(seed)
>>    math.randomseed( seed )
>>    print ("Seed: "..seed,
>>
>>  math.random(10000),math.random(10000),math.random(10000),math.random(10000))
>>  end
>>
>>  for _,s in ipairs
>>  ({3063121584,2428144928,3559301251,4287790062,2737803158,2458923424})
>>  do
>>    tr(s)
>>  end
>>