# sm.noise.simplexNoise1d

A simplex noise 1d function.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.noise.simplexNoise1d( x, xm? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `x` | number | The X value. |
| `xm` *(optional)* | number | X value multiplier. (Default 1) |

**Returns:**

| Type | Description |
| --- | --- |
| number | The noise value. |

## Terrain

``` { .lua .api-signature }
sm.noise.simplexNoise1d( x, xm? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `x` | number | The X value. |
| `xm` *(optional)* | number | X value multiplier. (Default 1) |

**Returns:**

| Type | Description |
| --- | --- |
| number | The noise value. |
