Searched refs:choose_weighted (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/rand/src/seq/ |
D | mod.rs | 143 fn choose_weighted<R, F, B, X>( in choose_weighted() method 526 fn choose_weighted<R, F, B, X>( in choose_weighted() method 725 assert_eq!(chars.choose_weighted(&mut r, |_| 1), Ok(&'f')); in value_stability_slice() 1074 let item = items.choose_weighted(&mut r, get_weight).unwrap(); in test_weighted() 1095 empty_slice.choose_weighted(&mut r, |_| 1), in test_weighted()
|
/external/rust/crates/rand/ |
D | CHANGELOG.md | 246 - Add `WeightedIndex` and `choose_weighted` (#518, #547)
|