What is shuf?
shuf is a tool to get a random sample in a random order, from a data source of an unknown size. It's used in data analytics, often as a way to get a small random sample from a data lake or warehouse, or from a large CSV file. It was originally written for coreutils as a CLI tool, and you can find the source for that here.
I have reverse-engineered it to JS as an algorithm here- would you be interested if I created a PR for it, to add it to this repo?