random binary

For random.

Generate random bytes.

Command Type

built-in

Signature

> random binary {flags} (length)

Parameters

  • length: Length of the output binary.

Input/output types:

input output
nothing binary

Examples

Generate 16 random bytes.

> random binary 16

Generate 1 random kilobyte.

> random binary 1kb

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.