Steven, Have you considered you might want a less random distribution? If you just want to remove repeats so it 'seems' more random you could do that (replace any repeat with another random value not equal to the last value). It likely will not be as uniformly random as the original sequence but it will be 'smoother' in some definition that you might prefer for your uses. Be very careful though if you are going to use it for technical work that requires a uniform distribution in the formal sense.
-- Dave -- http://mail.python.org/mailman/listinfo/python-list