Use numpy.random.randint to generate sample with replacement