lua-users home
lua-l archive

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


On Fri, Apr 13, 2018 at 5:35 PM, Albert Chan <albertmcchan@yahoo.com> wrote:

> Prior to lua 5.4, lua math.random() use  C rand().

> Does that mean the "old" lua math.random may obtain different random output with the same seed ?

Generally, yes. You can say "no" only if you control all the other users of rand() in the process, which in many cases you can, though.

Cheers,
V.