lua-users home
lua-l archive

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


On 1 March 2011 23:37, luciano de souza <luchyanus@gmail.com> wrote:
> function prandom(l: plua_state):integer;
> var
> n: integer;
> begin
> randomize;
> n := random(100);
> lua_tonumber(l, n);
> prandom:=1;
> end;
>

You probably wanted pushnumber; not tonumber.

Daurn.