# tf.random.Algorithm

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.2.0/tensorflow/python/ops/stateful_random_ops.py#L67-L69) |

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 />

## Class Variables

- `PHILOX`
- `THREEFRY`