# tensorflow::ops::RandomNormal Class Reference

# tensorflow::ops::RandomNormal

`#include <random_ops.h>`

Outputs random values from a normal distribution.

## Summary

The generated values will have mean 0 and standard deviation 1.

Arguments:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object
- shape: The shape of the output tensor.
- dtype: The type of the output.

<br />

Optional attributes (see `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs#structtensorflow_1_1ops_1_1_random_normal_1_1_attrs`):

- seed: 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.
- seed2: A second seed to avoid seed collision.

<br />

Returns:

- `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output`: A tensor of the specified shape filled with random normal values.

<br />

| ### Constructors and Destructors ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal_1a7b41dc701cdee57b719f6abecd04670e(const ::https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, ::https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input shape, DataType dtype)` ||
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal_1a64b0e935c4c1d4a47c6f986121add84c(const ::https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, ::https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input shape, DataType dtype, const https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs#structtensorflow_1_1ops_1_1_random_normal_1_1_attrs & attrs)` ||

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal_1ac47fd518b235cd1e014afceb66d7f306` | `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal_1a02c28c9d84b4b07ca4e80b016da0ecd4` | `::https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal_1a1a40dd145b64991a7d58c8048c78ebba() const ` | `::tensorflow::Node *` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal_1a87b2066f673bc74872fe7646084dd9ae() const ` | ` `` ` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal_1a21f1b07cb82b038ec549d30297ba37a0() const ` | ` `` ` |

| ### Public static functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal_1adcde4468e983c17b0051ecad4c5c3cd6(int64 x)` | `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs#structtensorflow_1_1ops_1_1_random_normal_1_1_attrs` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal_1a72ff9c5ac216023bca9894fe971ed85b(int64 x)` | `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs#structtensorflow_1_1ops_1_1_random_normal_1_1_attrs` |

| ### Structs ||
|---|---|
| [tensorflow::ops::RandomNormal::Attrs](https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs) | Optional attribute setters for [RandomNormal](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal). |

## Public attributes

### operation

```
Operation operation
```

### output

```
::tensorflow::Output output
```

## Public functions

### RandomNormal

```
 RandomNormal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype
)
```

### RandomNormal

```
 RandomNormal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype,
  const RandomNormal::Attrs & attrs
)
```

### node

```
::tensorflow::Node * node() const 
```

### operator::tensorflow::Input

```
 operator::tensorflow::Input() const 
```

### operator::tensorflow::Output

```
 operator::tensorflow::Output() const 
```

## Public static functions

### Seed

```
Attrs Seed(
  int64 x
)
```

### Seed2

```
Attrs Seed2(
  int64 x
)
```