FITIn: fixes handling of randoms in LUA