pub fn create_range_sampling_iter<I>(
    iterator: I,
    sample_size: usize,
    random: &(dyn Random + Sync + Send)
) -> impl Iterator<Item = <I as Iterator>::Item>
where I: Iterator,
Expand description

Returns a new iterator which samples some range from existing one.