<br />

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

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

    tf.experimental.numpy.random.seed(
        s
    )

Sets the seed for the random number generator.

Uses `tf.set_random_seed`.

Args:
s: an integer.

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