'Get n items for removal.'

def remove_n(self, n):

    assert ((self.init_length + n) <= self.cur_size)
    if (self.eviction_strategy == 'rand'):
        idxs = random.sample(xrange(self.init_length, self.cur_size), n)
    elif (self.eviction_strategy == 'fifo'):
        idxs = [(self.init_length + ((self.remove_idx + i) % (self.max_size - self.init_length))) for i in xrange(n)]
        self.remove_idx = ((idxs[(-1)] + 1) - self.init_length)
    elif (self.eviction_strategy == 'rank'):
        idxs = np.argpartition(self.priorities, n)[:n]
    return idxs
