W3cubDocs

/Nushell

random for random

Generate a random value.

Signature

> random {flags}

Input/output types:

input output
nothing string

Notes

You must use one of the following subcommands. Using this command as-is will only produce this help message.

Subcommands:

name type usage
random bool Builtin Generate a random boolean value.
random chars Builtin Generate random chars.
random decimal Builtin deprecated: Generate a random float within a range [min..max].
random dice Builtin Generate a random dice roll.
random float Builtin Generate a random float within a range [min..max].
random integer Builtin Generate a random integer [min..max].
random uuid Builtin Generate a random uuid4 string.

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/random.html