mirror of
https://github.com/nushell/nushell.git
synced 2024-11-27 02:44:01 +01:00
36 lines
598 B
Markdown
36 lines
598 B
Markdown
|
# random decimal
|
||
|
Generate a random decimal within a range [min..max]
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
> random decimal (range) {flags}
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
* `(range)` Range of values
|
||
|
|
||
|
## Flags
|
||
|
* -h, --help: Display this help message
|
||
|
|
||
|
## 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
|
||
|
```
|
||
|
|