# tf.keras.utils.set_random_seed

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v2.13.1/keras/utils/tf_utils.py#L39-L71) |

Sets all random seeds for the program (Python, NumPy, and TensorFlow).

    tf.keras.utils.set_random_seed(
        seed
    )

You can use this utility to make almost any Keras program fully
deterministic. Some limitations apply in cases where network communications
are involved (e.g. parameter server distribution), which creates additional
sources of randomness, or when certain non-deterministic cuDNN ops are
involved.

Calling this utility is equivalent to the following:

    import random
    import numpy as np
    import tensorflow as tf
    random.seed(seed)
    np.random.seed(seed)
    tf.random.set_seed(seed)

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `seed` | Integer, the random seed to use. |

<br />