2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: random integer
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
Generate a random integer [min..max]
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> random integer (range)```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `range`: Range of values
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Generate an unconstrained random integer
|
|
|
|
```shell
|
|
|
|
> random integer
|
|
|
|
```
|
|
|
|
|
|
|
|
Generate a random integer less than or equal to 500
|
|
|
|
```shell
|
|
|
|
> random integer ..500
|
|
|
|
```
|
|
|
|
|
|
|
|
Generate a random integer greater than or equal to 100000
|
|
|
|
```shell
|
|
|
|
> random integer 100000..
|
|
|
|
```
|
|
|
|
|
|
|
|
Generate a random integer between 1 and 10
|
|
|
|
```shell
|
|
|
|
> random integer 1..10
|
|
|
|
```
|