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:
Radek Vít
2020-09-19 22:41:49 +02:00
committed by GitHub
parent 193c4cc6d5
commit 798766b4b5
5 changed files with 117 additions and 39 deletions

View File

@ -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
```