shufflr 0.1.2

Shuffle a lists using Fisher-Yates algorithm
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 8.36 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.23 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • hectortosa/shufflr
    3 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hectortosa

shufflr

crates.io Shufflr

Rust CI

Shuffle lists based on Fisher-Yates shuffle algorithm

Using shufflr

Note: Shufflr is also available for JavaScript as NPM package.

To use shufflr in your project simply follow this steps:

Add shufflr to your Cargo.toml:

    [dependencies]
    shufflr = "0.1.0"

Import shufflr in your Rust code:

    use shufflr::shuffle;

Use shuffle method with an array to get a copy of it shuffled:

    let shuffled_array = shuffle(&original_array);

Develop

After cloning the repository, build the project with:

    cargo build

To run shufflr tests simply run:

    cargo test

:heart: Like the project?

If you like this project (or any other) and want to help me contiue to improve it or create new ones, check my Ko-fi profile and consider buying me a Speciality Coffee:

ko-fi