mirror of
https://github.com/nushell/nushell.git
synced 2024-12-27 01:19:25 +01:00
24 lines
389 B
Markdown
24 lines
389 B
Markdown
|
# random bool
|
||
|
Generate a random boolean value
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
> random bool {flags}
|
||
|
```
|
||
|
|
||
|
## Flags
|
||
|
* -h, --help: Display this help message
|
||
|
* -b, --bias <number>: Adjusts the probability of a "true" outcome
|
||
|
|
||
|
## Examples
|
||
|
Generate a random boolean value
|
||
|
```shell
|
||
|
> random bool
|
||
|
```
|
||
|
|
||
|
Generate a random boolean value with a 75% chance of "true"
|
||
|
```shell
|
||
|
> random bool --bias 0.75
|
||
|
```
|
||
|
|