code: def generateRandomSequence(numSymbols, numColumns, sparsity):
    
    sequence = []
    sparseCols = int(numColumns * sparsity)
    for _ in range(numSymbols):
      sequence.append(generateRandomSymbol(numColumns, sparseCols))
    return sequence
docs: Generate a random sequence comprising numSymbols SDRs
    
    @param numSymbols (int) number of SDRs in random sequence
    @param numColumns (int) number of columns in the temporal memory
    @param sparsity (float) percentage of sparsity (real number between 0 and 1)  
    @return sequence (array) random sequence generated