2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-01-21 09:34:39 +00:00
nushell/docs/commands/shuffle.md

506 B

shuffle

Shuffles the rows in a random order.

Examples

Passing the same input to shuffle multiple times gives different results -

> echo [ a b c d ] | shuffle
───┬───
 0 │ a
 1 │ c
 2 │ d
 3 │ b
───┴───
> echo [ a b c d ] | shuffle
───┬───
 0 │ c
 1 │ b
 2 │ d
 3 │ a
───┴───
> echo [ a b c d ] | shuffle
───┬───
 0 │ c
 1 │ b
 2 │ a
 3 │ d
───┴───