# tf.random.Algorithm

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.7.4/tensorflow/python/ops/stateless_random_ops.py#L57-L62) |

An enumeration.

#### View aliases


**Main aliases**

[`tf.random.experimental.Algorithm`](https://www.tensorflow.org/api_docs/python/tf/random/Algorithm)
**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.random.Algorithm`](https://www.tensorflow.org/api_docs/python/tf/random/Algorithm), [`tf.compat.v1.random.experimental.Algorithm`](https://www.tensorflow.org/api_docs/python/tf/random/Algorithm)

<br />

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| AUTO_SELECT | `<Algorithm.AUTO_SELECT: 3>` |
| PHILOX | `<Algorithm.PHILOX: 1>` |
| THREEFRY | `<Algorithm.THREEFRY: 2>` |

<br />