Rearranging a sequence

Posted by sarah on Stack Overflow See other posts from Stack Overflow or by sarah
Published on 2010-03-29T14:16:58Z Indexed on 2010/03/29 14:23 UTC
Read the original article Hit count: 301

Filed under:
|
|

I'm have trouble rearranging sequences so the amount of letters in the given original sequence are the same in the random generated sequences. For example:

If i have a string 'AAAC' I need that string rearranged randomly so the amount of A's and C's are the same.

© Stack Overflow or respective owner

Related posts about python

Related posts about random