lua-users home
lua-l archive

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


>Now, we don't have a time() function...

Lua 5.0 has a time() function.

>Perhaps try:
>
>dostring("timev = " .. date('%Y') .. date('%j') ..
>  date('%H') .. date('%M') .. date('%S'))
>randomseed(timev)
>
>or other combinations of these values.
>
>There may be a simpler method...

Yes, try:
	randomseed(date"%Y%m%d%H%M%S")
--lhf