# sm.noise.randomRange

Returns a random number N such that `a <= N <= b`.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.noise.randomRange( a, b )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `a` | number | The lower bound. |
| `b` | number | The upper bound. |

**Returns:**

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

## Terrain

``` { .lua .api-signature }
sm.noise.randomRange( a, b )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `a` | number | The lower bound. |
| `b` | number | The upper bound. |

**Returns:**

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