Home
last modified time | relevance | path

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

/external/rust/crates/rand/src/seq/
Dindex.rs246 sample_inplace(rng, length, amount) in sample()
254 sample_inplace(rng, length, amount) in sample()
459 fn sample_inplace<R>(rng: &mut R, length: u32, amount: u32) -> IndexVec in sample_inplace() function
571 assert_eq!(sample_inplace(&mut r, 0, 0).len(), 0); in test_sample_boundaries()
572 assert_eq!(sample_inplace(&mut r, 1, 0).len(), 0); in test_sample_boundaries()
573 assert_eq!(sample_inplace(&mut r, 1, 1).into_vec(), vec![0]); in test_sample_boundaries()
601 let v2 = sample_inplace(&mut seed_rng(420), length as u32, amount as u32); in test_sample_alg()