'Choose *n* possibly duplicate items from sequence.'

def _random_choice(self, seq, n):

    l = [self.rnd.choice(list(seq)) for i in range(n)]
    if isinstance(seq, np.ndarray):
        return np.array(l, dtype=seq.dtype)
    else:
        return l
