Unsorting(randomizing) a sequence

Tim Peters tim_one at email.msn.com
Tue Aug 17 03:47:10 EDT 1999


[Ole-Kristian Villaboe]
> Is there a command to do this?

No.

> ...
> I've been writing an algorithm myself, but it's incredibly slow and I
> would like something quicker (of course :) )

Post your algorithm; can't say how to speed it up without knowing why it's
incredibly slow; for that matter, can't guess what "incredibly" means.
Perhaps quadratic-time in the number of elements?

no-info-in-no-info-out-ly y'rs  - tim






More information about the Python-list mailing list