def generateSimpleSequences(nCoinc=<NUM_LIT:10>, seqLength=[<NUM_LIT:5>,<NUM_LIT:6>,<NUM_LIT:7>], nSeq=<NUM_LIT:100>):
coincList = list(range(nCoinc))<EOL>seqList  = []<EOL>for i in range(nSeq):<EOL><INDENT>if max(seqLength) <= nCoinc:<EOL><INDENT>seqList.append(random.sample(coincList, random.choice(seqLength)))<EOL><DEDENT>else:<EOL><INDENT>len = random.choice(seqLength)<EOL>seq = []<EOL>for x in range(len):<EOL><INDENT>seq.append(random.choice(coincList))<EOL><DEDENT>seqList.append(seq)<EOL><DEDENT><DEDENT>return seqList<EOL>
Generate a set of simple sequences. The elements of the sequences will be
integers from 0 to 'nCoinc'-1. The length of each sequence will be
randomly chosen from the 'seqLength' list.

Parameters:
-----------------------------------------------
nCoinc:      the number of elements available to use in the sequences
seqLength:   a list of possible sequence lengths. The length of each
             sequence will be randomly chosen from here.
nSeq:        The number of sequences to generate

retval:      a list of sequences. Each sequence is itself a list
             containing the coincidence indices for that sequence.