fixinventory
fixinventory copied to clipboard
Select random elements of list
Motivation
I often find myself wanting to look at the contents of a random element of a search result. Most of the time I do
search ... | tail -1 | dump
Or the head
equivalent, but if I want a third sample I need to copy'paste it from the list output.
Desired Behavior
search ... | random | dump # returns 1 random element
search ... | random 3 | dump # returns 3 random elements
Additional Context
No response