# sm.noise.randomNormalDistribution

Returns a random number according to the <a target="_blank" href="https://en.wikipedia.org/wiki/Normal_distribution">normal random number distribution</a>.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.noise.randomNormalDistribution( mean, deviation )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.noise.md#randomnormaldistribution)

Values near the <strong>mean</strong> are the most likely.

Standard <strong>deviation</strong> affects the dispersion of generated values from the mean.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `mean` | number | The mean. |
| `deviation` | number | The deviation. |

**Returns:**

| Type | Description |
| --- | --- |
| number | The random number. |

## Terrain

``` { .lua .api-signature }
sm.noise.randomNormalDistribution( mean, deviation )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.noise.md#randomnormaldistribution)

Values near the <strong>mean</strong> are the most likely.

Standard <strong>deviation</strong> affects the dispersion of generated values from the mean.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `mean` | number | The mean. |
| `deviation` | number | The deviation. |

**Returns:**

| Type | Description |
| --- | --- |
| number | The random number. |
