# tf.experimental.numpy.random.randint

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.6.0/tensorflow/python/ops/numpy_ops/np_random.py#L109-L123) |

TensorFlow variant of NumPy's `random.randint`.

    tf.experimental.numpy.random.randint(
        low, high=None, size=None, dtype=onp.int
    )

See the NumPy documentation for [`numpy.random.randint`](https://numpy.org/doc/1.16/reference/generated/numpy.random.randint.html).