data[int(np.random.uniform(1000,data.shape[0]))] code example Example: np.random.uniform numpy.random.uniform(low=0.0, high=1.0, size=None)