Searched refs:sample_rejection (Results 1 – 1 of 1) sorted by relevance
/external/rust/crates/rand/src/seq/ |
D | index.rs | 230 return sample_rejection(rng, length, amount); in sample() 256 sample_rejection(rng, length, amount) in sample() 521 fn sample_rejection<X: UInt, R>(rng: &mut R, length: X, amount: X) -> IndexVec in sample_rejection() function 575 assert_eq!(sample_rejection(&mut r, 1u32, 0).len(), 0); in test_sample_boundaries() 582 let sum: usize = sample_rejection(&mut r, 1 << 25, 10u32).into_iter().sum(); in test_sample_boundaries() 619 let v2 = sample_rejection(&mut seed_rng(422), length as u32, amount as u32); in test_sample_alg()
|