test.rs 258 B

12345678
  1. use reservoir_sampling::unweighted::l;
  2. pub(crate) fn hehehehe () {
  3. let mut sampled_arr = vec![0usize; 10];
  4. println!("Orig array: {:?}", sampled_arr);
  5. l(0usize..100, sampled_arr.as_mut_slice());
  6. println!("Sampled array: {:?}", sampled_arr);
  7. }