random bool for random
Generate a random boolean value.
Signature
> random bool {flags}
Flags
-
--bias, -b {number}: Adjusts the probability of a "true" outcome.
Input/output types:
| input | output |
|---|---|
| nothing | bool |
Examples
Generate a random boolean value.
> random bool
Generate a random boolean value with a 75% chance of "true".
> random bool --bias 0.75
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/random_bool.html