code: def getRandomSequence(length=500):
      
      fastaHeader = ""
      for i in xrange(int(random.random()*100)):
          fastaHeader = fastaHeader + random.choice([ 'A', 'C', '0', '9', ' ', '\t' ])
      return (fastaHeader, \
              "".join([ random.choice([ 'A', 'C', 'T', 'G', 'A', 'C', 'T', 'G', 'A', 'C', 'T', 'G', 'A', 'C', 'T', 'G', 'A', 'C', 'T', 'G', 'N' ]) for i in xrange((int)(random.random() * length))]))
docs: Generates a random name and sequence.