Skip to content

Adding shuf - a way to get a random sample from a large dataset #567

@MarkSFrancis

Description

@MarkSFrancis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions