mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 06:05:27 +02:00
Remove panics from random integer and make the constraint more idiomatic (#2578)
* Remove panics from random integer and make the constraint more idiomatic * Add open intervals to NumericRange
This commit is contained in:
@ -106,16 +106,16 @@ true
|
||||
```
|
||||
|
||||
```shell
|
||||
> random integer --min 5000
|
||||
> random integer 5000..
|
||||
8700890823
|
||||
```
|
||||
|
||||
```shell
|
||||
> random integer --max 100
|
||||
> random integer ..100
|
||||
73
|
||||
```
|
||||
|
||||
```shell
|
||||
> random integer --min 100000 --max 200000
|
||||
> random integer 100000..200000
|
||||
173400
|
||||
```
|
||||
|
Reference in New Issue
Block a user