# 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.13.1/tensorflow/python/ops/numpy_ops/np_random.py#L106-L124) |

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

    tf.experimental.numpy.random.randint(
        low,
        high=None,
        size=None,
        dtype=https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/experimental/numpy/int64
    )

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