def randomize_sequences(sequences):
    'Randomly permutes a set of DNA sequences.\n    '
    import random
    shuffled_seqs = []
    for seq in sequences:
        shuffled_seqs.append(''.join(random.sample(seq, len(seq))))
    return shuffled_seqs
Randomly permutes a set of DNA sequences.
def randomize_sequences(sequences):
    '\n    '
    import random
    shuffled_seqs = []
    for seq in sequences:
        shuffled_seqs.append(.join(random.sample(seq, len(seq))))
    return shuffled_seqs