random_grouping
Utility for random grouping.
The author of this crate is not good at English.
Forgive me if the document is hard to read.
What is this?
This is useful for grouping multiple items into some groups at random.
Examples
let mut rg = new;
let samples = .;
let ratios = ;
let result = rg.divide_by_ratio;
assert!;
for i in 0..result.len
What's New
Version 0.2.1 is update for code refactoring.
Version 0.2.0 has the following changes.
- The default value of
stablehas been changed totruefromfalse. - The first argument of
divide_by_sizeanddivide_by_ratiois changed toIntoIteratorfrom slice. - Instead,
divide_slice_by_sizeanddivide_slice_by_ratioare introduced (which are faster for slices).