[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: randomseed
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 16 Nov 2002 10:23:21 -0200
>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