kindness
Methods for choosing random elements from an iterator.
Includes choose_item(), choose_max(), choose_max_by(), choose_max_by_key(), choose_min(), choose_min_by(), choose_min_by_key()
no_std by default. The std feature unlocks the choose_unique() and choose_unique_by_key() methods.
The name of the crate is a pun. "Random max of kindness". I'm sorry.
This crate works with Cargo with a Cargo.toml like:
[]
= "0.5.0"
= "0.9.0"
Getting started
use *;
use SeedableRng;
Contributing
Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.
Check out the Contributing section in the docs for more info.
License
This project is proudly licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT).
kindness can be distributed according to the MIT license. Contributions
will be accepted under the same license.