Just to prove a point, here's the code:
Code: Select all
local t = os.time()
print(t)
math.randomseed(t)
print(math.random(0,99),
math.random(0,99),
math.random(0,99),
math.random(0,99))
Code: Select all
c:\programming>lua random.lua
1227481969
87 38 90 76
c:\programming>lua random.lua
1227481972
87 36 54 96
c:\programming>lua random.lua
1227481974
87 2 63 43
c:\programming>lua random.lua
1227481977
87 0 26 63
c:\programming>lua random.lua
1227481980
87 99 90 83
c:\programming>lua random.lua
1227481983
87 97 53 4
c:\programming>lua random.lua
1227481985
87 63 62 51
c:\programming>lua random.lua
1227481988
87 61 26 71
c:\programming>lua random.lua
1227481991
87 60 89 91
c:\programming>lua random.lua
1227481993
87 25 98 38
c:\programming>lua random.lua
1227481996
87 24 62 58
c:\programming>lua random.lua
1227481998
87 89 71 5
c:\programming>lua random.lua
1227482001
87 88 35 26
c:\programming>lua random.lua
1227482004
87 86 98 46
c:\programming>lua random.lua
1227482006
87 52 7 93
c:\programming>lua random.lua
1227482009
87 50 71 13
c:\programming>lua random.lua
1227482012
87 48 34 33
c:\programming>lua random.lua
1227482015
87 47 98 54
c:\programming>lua random.lua
1227482018
87 45 61 74
c:\programming>lua random.lua
1227482021
87 44 25 94
c:\programming>lua random.lua
1227482024
87 42 89 15
c:\programming>lua random.lua
1227482027
87 40 52 35
c:\programming>lua random.lua
1227482029
87 6 61 82
c:\programming>lua random.lua
1227482032
87 4 25 2
c:\programming>lua random.lua
1227482035
87 3 88 22
c:\programming>lua random.lua
1227482038
87 1 52 43
c:\programming>lua random.lua
1227482041
87 0 15 63
c:\programming>lua random.lua
1227482044
87 98 79 83
c:\programming>lua random.lua
1227482047
87 97 42 4
c:\programming>lua random.lua
1227482051
87 28 60 97
c:\programming>lua random.lua
1227482054
87 26 24 18
c:\programming>lua random.lua
1227482057
87 25 88 38
c:\programming>lua random.lua
1227482060
87 23 51 58
c:\programming>lua random.lua
1227482063
87 21 15 79