code: def shuffle_columns( a ):
      
      mask = range( a.text_size )
      random.shuffle( mask )
      for c in a.components:
          c.text = ''.join( [ c.text[i] for i in mask ] )
docs: Randomize the columns of an alignment