<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/internal/samplers.py#L219-L258) |

Splits a seed into `n` derived seeds.

    tfp.random.split_seed(
        seed, n=2, salt=None, name=None
    )

### Used in the notebooks

| Used in the tutorials |
|---|
| - [TFP Release Notes notebook (0.12.1)](https://www.tensorflow.org/probability/examples/TFP_Release_Notebook_0_12_1) - [TFP Release Notes notebook (0.13.0)](https://www.tensorflow.org/probability/examples/TFP_Release_Notebook_0_13_0) |

See https://github.com/tensorflow/probability/blob/main/PRNGS.md
for details.
Args:
seed: The seed to split; may be an `int`, an `(int, int) tuple`, or a
`Tensor`. `int` seeds are converted to `Tensor` seeds using
[`tf.random.uniform`](https://www.tensorflow.org/api_docs/python/tf/random/uniform) stateful sampling. Tuples are converted to `Tensor`.
n: The number of splits to return. In TensorFlow, if `n` is an integer, this
function returns a list of seeds and otherwise returns a `Tensor` of
seeds. In JAX, this function always returns an array of seeds.
salt: Optional `str` salt to mix with the seed.
name: Optional name to scope related ops.

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `seeds` | If `n` is a Python `int`, a `tuple` of seed values is returned. If `n` is an int `Tensor`, a single `Tensor` of shape `[n, 2]` is returned. A single such seed is suitable to pass as the `seed` argument of the `tf.random.stateless_*` ops. |

<br />