randomseed in LUA

后端 未结 2 564
清酒与你
清酒与你 2021-01-01 03:13

I am working on a code that randomizes numbers. I put math.randomseed(os.time()) inside a loop. The code goes like this:

for i = 1, 1000 do
  ma         


        
2条回答
  •  醉话见心
    2021-01-01 03:22

    Call math.randomseed once at the start of the program. No point calling it in a loop.

提交回复
热议问题