Home
last modified time | relevance | path

Searched refs:sample_floyd (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/rand/src/seq/
Dindex.rs248 sample_floyd(rng, length, amount) in sample()
415 fn sample_floyd<R>(rng: &mut R, length: u32, amount: u32) -> IndexVec in sample_floyd() function
577 assert_eq!(sample_floyd(&mut r, 0, 0).len(), 0); in test_sample_boundaries()
578 assert_eq!(sample_floyd(&mut r, 1, 0).len(), 0); in test_sample_boundaries()
579 assert_eq!(sample_floyd(&mut r, 1, 1).into_vec(), vec![0]); in test_sample_boundaries()
585 let sum: usize = sample_floyd(&mut r, 1 << 25, 10).into_iter().sum(); in test_sample_boundaries()
606 let v3 = sample_floyd(&mut seed_rng(420), length as u32, amount as u32); in test_sample_alg()
612 let v2 = sample_floyd(&mut seed_rng(421), length as u32, amount as u32); in test_sample_alg()