math.randomseed(os.time())
print(math.random())
--[[
$ until false; do lua foo.lua; done
0.60773451375204
0.60773451375204
0.60773451375204
0.60773451375204
0.60773451375204
0.60773451375204
[...]
0.46425853691262
0.46425853691262
0.46425853691262
0.46425853691262
0.46425853691262
0.46425853691262
0.46425853691262
0.46425853691262
[...]
0.81885433235152
0.81885433235152
0.81885433235152
0.81885433235152
0.81885433235152
0.81885433235152
0.81885433235152
0.81885433235152
0.81885433235152
]]