mirror of
https://github.com/nushell/nushell.git
synced 2024-12-28 01:49:20 +01:00
38 lines
506 B
Markdown
38 lines
506 B
Markdown
# shuffle
|
|
|
|
Shuffles the rows in a random order.
|
|
|
|
## Examples
|
|
|
|
Passing the same input to shuffle multiple times gives different results -
|
|
|
|
```shell
|
|
> echo [ a b c d ] | shuffle
|
|
───┬───
|
|
0 │ a
|
|
1 │ c
|
|
2 │ d
|
|
3 │ b
|
|
───┴───
|
|
```
|
|
|
|
```shell
|
|
> echo [ a b c d ] | shuffle
|
|
───┬───
|
|
0 │ c
|
|
1 │ b
|
|
2 │ d
|
|
3 │ a
|
|
───┴───
|
|
```
|
|
|
|
```shell
|
|
> echo [ a b c d ] | shuffle
|
|
───┬───
|
|
0 │ c
|
|
1 │ b
|
|
2 │ a
|
|
3 │ d
|
|
───┴───
|
|
```
|