I was checking if Luiz's module random.c return unbiased random integers.
The code return 0 for "bad" range, instead of lua_pushnil(L); return 1
If the only difference is select('#', ...) = 0 instead of 1, I guess return 0 is ok
BTW, random.c did NOT return unbiased random integers.