Initial implementation of random integer subcommand. (#2489)

* Initial implementation of random integer subcommand.

* Added additional examples.

Co-authored-by: Stacy Maydew <stacy.maydew@starlab.io>
This commit is contained in:
smaydew
2020-09-03 13:23:02 -06:00
committed by GitHub
parent 8dc7b8a7cd
commit 1ffbb66e64
7 changed files with 151 additions and 1 deletions

View File

@ -88,3 +88,34 @@ true
> random uuid
8af4de39-acbc-42f0-94d1-7cfad6c01f8b
```
## integer
* `random integer`: Generate a random integer
### integer Flags
* `m`, `--min` \<integer>: The minimum value to generate
* `x`, `--max` \<integer>: The maximum value to generate
### integer Examples
```shell
> random integer
42
```
```shell
> random integer --min 5000
8700890823
```
```shell
> random integer --max 100
73
```
```shell
> random integer --min 100000 --max 200000
173400
```