2020-06-25 05:51:09 +00:00
|
|
|
# random
|
|
|
|
|
|
|
|
Use `random` to generate random values
|
|
|
|
|
2020-06-26 04:51:05 +00:00
|
|
|
## uuid
|
|
|
|
|
2020-06-25 05:51:09 +00:00
|
|
|
* `random uuid`: Generate a random uuid4 string
|
|
|
|
|
2020-06-26 04:51:05 +00:00
|
|
|
### uuid Examples
|
2020-06-25 05:51:09 +00:00
|
|
|
|
|
|
|
```shell
|
|
|
|
> random uuid
|
|
|
|
8af4de39-acbc-42f0-94d1-7cfad6c01f8b
|
|
|
|
```
|
2020-06-26 04:51:05 +00:00
|
|
|
|
|
|
|
## bool
|
|
|
|
|
|
|
|
* `random bool`: Generate a random boolean value
|
|
|
|
|
|
|
|
### bool Flags
|
|
|
|
|
|
|
|
* `-b`, `--bias` \<number>: Adjusts the probability of a "true" outcome
|
|
|
|
|
|
|
|
### bool Examples
|
|
|
|
|
|
|
|
```shell
|
|
|
|
> random bool
|
|
|
|
false
|
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
|
|
|
> random bool --bias 0.75
|
|
|
|
true
|
|
|
|
```
|