# LIST_STAT_RANGE

*LSL constant*

```lsl
integer LIST_STAT_RANGE = 0;
```

Option used with llListStatistics to calculate the range (maximum value minus minimum value) of the list.

Constant groups: [ListStatisticsOperation](/constants/groups/ListStatisticsOperation/)

Calculates the range of the list. (max - min)

## Examples

<details open>
<summary>Example 1</summary>

```lsl
float range = llListStatistics( LIST_STAT_RANGE, numList );
```

</details>

<details>
<summary>Example 2</summary>

```lsl
float max = llListStatistics( LIST_STAT_MAX, numList );
float min = llListStatistics( LIST_STAT_MIN, numList );
float range = max - min;
```

</details>

## See also

### Functions

- [llListStatistics](/functions/llListStatistics/)

---

*Source: [LIST STAT RANGE](https://wiki.secondlife.com/wiki/LIST_STAT_RANGE) on the Second Life Wiki. Content from the Second Life Wiki article LIST STAT RANGE (revision 1194664, 2015-01-23), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/LIST_STAT_RANGE/
