code: def addNoise(vecs, percent=0.1, n=2048):
    
    noisyVecs = []
    for vec in vecs:
      nv = vec.copy()
      for idx in vec:
        if numpy.random.random() <= percent:
          nv.discard(idx)
          nv.add(numpy.random.randint(n))
      noisyVecs.append(nv)
  
    return noisyVecs
docs: Add noise to the given sequence of vectors and return the modified  sequence.
    A percentage of the on bits are shuffled to other locations.