2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: random bool
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
Generate a random boolean value
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> random bool --bias```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `--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
|
|
|
|
```
|