2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: random decimal
|
|
|
|
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 decimal within a range [min..max]
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> random decimal (range)```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `range`: Range of values
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Generate a default decimal value between 0 and 1
|
|
|
|
```shell
|
|
|
|
> random decimal
|
|
|
|
```
|
|
|
|
|
|
|
|
Generate a random decimal less than or equal to 500
|
|
|
|
```shell
|
|
|
|
> random decimal ..500
|
|
|
|
```
|
|
|
|
|
|
|
|
Generate a random decimal greater than or equal to 100000
|
|
|
|
```shell
|
|
|
|
> random decimal 100000..
|
|
|
|
```
|
|
|
|
|
|
|
|
Generate a random decimal between 1.0 and 1.1
|
|
|
|
```shell
|
|
|
|
> random decimal 1.0..1.1
|
|
|
|
```
|