Tim Chase <[EMAIL PROTECTED]> writes:
> The closest hack I could come up with was
> 
>       import random
>       s = "abcdefg"
>       a = []
>       a.extend(s)
>       random.shuffle(a)
>       s = "".join(a)

You could use

        import random
        s = list("abcdefg")
        random.shuffle(s)
        s = "".join(s)

which cuts down the clutter slightly.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to