# tf.raw_ops.StatefulUniform

<br />

Outputs random values from a uniform distribution.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.raw_ops.StatefulUniform`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/StatefulUniform)

<br />

    tf.raw_ops.StatefulUniform(
        resource,
        algorithm,
        shape,
        dtype=https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/dtypes#float32,
        name=None
    )

The generated values follow a uniform distribution in the range `[0, 1)`. The
lower bound 0 is included in the range, while the upper bound 1 is excluded.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `resource` | A `Tensor` of type `resource`. The handle of the resource variable that stores the state of the RNG. |
| `algorithm` | A `Tensor` of type `int64`. The RNG algorithm. |
| `shape` | A `Tensor`. The shape of the output tensor. |
| `dtype` | An optional [`tf.DType`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/dtypes/DType). Defaults to [`tf.float32`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf#float32). The type of the output. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `dtype`. ||

<br />