mirror of
https://github.com/nushell/nushell
synced 2024-12-29 14:33:13 +00:00
306dc89ede
* Add bool subcommand to random * Fix function name copy paste error * Fix issue 2062: allow deserialization of a decimal * Add bias flag to `random bool`
437 B
437 B
random
Use random
to generate random values
uuid
random uuid
: Generate a random uuid4 string
uuid Examples
> random uuid
8af4de39-acbc-42f0-94d1-7cfad6c01f8b
bool
random bool
: Generate a random boolean value
bool Flags
-b
,--bias
<number>: Adjusts the probability of a "true" outcome
bool Examples
> random bool
false
> random bool --bias 0.75
true