sm.noise.randomNormalDistribution
Returns a random number according to the normal random number distribution.
Kind: Function
Environments: Game, Terrain
Game
sm.noise.randomNormalDistribution( mean, deviation )
Values near the mean are the most likely.
Standard deviation 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
sm.noise.randomNormalDistribution( mean, deviation )
Open the full Terrain reference
Values near the mean are the most likely.
Standard deviation 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. |