# tensorflow::ops::RandomUniform::Attrs

`#include <random_ops.h>`

Optional attribute setters for [RandomUniform](https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/ops/random-uniform#classtensorflow_1_1ops_1_1_random_uniform).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs_1ad689294d25c463a7c73afee76cf8a075 = 0` | `int64` |
| `https://www.tensorflow.org/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs_1aefa9f61d1ff62dff58b23f2be625b7ca = 0` | `int64` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs_1a8571b5a8e02a087a716746ec72d3ea7b(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs` If either `seed` or `seed2` are set to be non-zero, the random number generator is seeded by the given seed. |
| `https://www.tensorflow.org/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs_1a54c50a5e1df50ec7be7ebad10102dce8(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.1/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs` A second seed to avoid seed collision. |

## Public attributes

### seed2_

```
int64 tensorflow::ops::RandomUniform::Attrs::seed2_ = 0
```

### seed_

```
int64 tensorflow::ops::RandomUniform::Attrs::seed_ = 0
```

## Public functions

### Seed

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomUniform::Attrs::Seed(
  int64 x
)
```
If either `seed` or `seed2` are set to be non-zero, the random number generator is seeded by the given seed.

Otherwise, it is seeded by a random seed.

Defaults to 0

### Seed2

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomUniform::Attrs::Seed2(
  int64 x
)
```
A second seed to avoid seed collision.

Defaults to 0