> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xray.cool/llms.txt
> Use this file to discover all available pages before exploring further.

# randomInt

> `randomInt`函数主要是用来生成两个范围内的随机数

## 函数原型

`func randomInt(from, to int) int`

### 参数介绍

| 参数名称 | 参数介绍      |
| ---- | --------- |
| from | 规定范围从哪里开始 |
| to   | 规定范围到哪里结束 |

## 举例

| 语句                        | 结果      |
| ------------------------- | ------- |
| `randomInt(10000, 99999)` | `15165` |

主要用来生成随机数字辅助验证命令执行（计算），控制时间盲注的睡眠时长等
