lua-users home
lua-l archive

Re: Getting randomic integers

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


On 2010年1月17日 00:20:57 -0800
Majic <majic.one@gmail.com> wrote:
> Yes yes, was just hoping to get random numbers more than once a second
> :) I don't think that's portable though.... oh well.
you can use socket.gettime() from luasocket to get a more granular time.
of course it might be a bit of an overkill to require luasocket only
for this function.
startx

AltStyle によって変換されたページ (->オリジナル) /