def generateSimpleSequences(nCoinc=10, seqLength=[5, 6, 7], nSeq=100):
 coincList = range(nCoinc)
 seqList = []
 for i in xrange(nSeq):
  if (max(seqLength) <= nCoinc):
   seqList.append(random.sample(coincList, random.choice(seqLength)))
  else:
   len = random.choice(seqLength)
   seq = []
   for x in xrange(len):
    seq.append(random.choice(coincList))
   seqList.append(seq)
 return seqList

def generateSimpleSequences ( nCoinc = 10 , seqLength = [ 5 , 6 , 7 ] , nSeq = 100 ) : coincList = range ( nCoinc ) seqList = [ ] for i in xrange ( nSeq ) : if ( max ( seqLength ) <= nCoinc ) : seqList . append ( random . sample ( coincList , random . choice ( seqLength ) ) ) else : len = random . choice ( seqLength ) seq = [ ] for x in xrange ( len ) : seq . append ( random . choice ( coincList ) ) seqList . append ( seq ) return seqList
generate a set of simple sequences .