> > > luaL_argcheck(L, up - low + 1 <= L_RANDMAX, 1, "interval too large"); > > up - low isn't representable when the difference is greater than > LUA_MAXINTEGER. we have to cast all operands to LUA_UNSIGNED. -- Roberto