Added Weighted random distribution in Lua