pick-one 1.0.1

Picks one random element from an array
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 4.52 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ashleygwilliams/rust-pick-one
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ashleygwilliams

rust-pick-one

Picks one random element from an array

Usage

In Cargo.toml:

[dependencies]
pick-one = "1.0.1"

In your lib.rs or main.rs:

extern crate pick_one;

let random_choice = pick_one::pick_one_str(&["doggo"]);