mirror of
https://github.com/nushell/nushell
synced 2024-11-10 23:24:14 +00:00
Add docs for the shuffle command (#1824)
This commit is contained in:
parent
b6cdfb1b19
commit
1d781e8797
1 changed files with 33 additions and 0 deletions
33
docs/commands/shuffle.md
Normal file
33
docs/commands/shuffle.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# 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
|
||||
───┴───
|
||||
```
|
Loading…
Reference in a new issue