local randomdo local rand = math.random local x, y function random(...) repeat x = math.random(...) until x ~= y y = x return x endend