pub fn shuffle<T>(samp: &mut [T], count: i32, n_dimensions: i32, rng: &mut Rng) {
    for i in 0..count {
        let other: i32 = i + rng.uniform_uint32_bounded((count - i) as u32) as i32;
        for j in 0..n_dimensions {
            samp.swap(
                (n_dimensions * i + j) as usize,
                (n_dimensions * other + j) as usize,
            );
        }
    }
}
/// Randomly permute an array of *count* sample values, each of which
/// has *n_dimensions* dimensions.
Randomly permute an array of *count* sample values, each of which
has *n_dimensions* dimensions.
Randomly permute an array of * count * sample values each of which has * n_dimensions * dimensions .
pub fn shuffle<T>(samp: &mut [T], count: i32, n_dimensions: i32, rng: &mut Rng) {
    for i in 0..count {
        let other: i32 = i + rng.uniform_uint32_bounded((count - i) as u32) as i32;
        for j in 0..n_dimensions {
            samp.swap(
                (n_dimensions * i + j) as usize,
                (n_dimensions * other + j) as usize,
            );
        }
    }
}
pub fn shuffle < T > ( samp : & mut [ T ] , count : i32 , n_dimensions : i32 , rng : & mut Rng ) { for i in 0 .. count { let other : i32 = i + rng . uniform_uint32_bounded ( ( count - i ) as u32 ) as i32 ; for j in 0 .. n_dimensions { samp . swap ( ( n_dimensions * i + j ) as usize , ( n_dimensions * other + j ) as usize , ) ; } } }
Randomly permute an array of *count* sample values, each of which
has *n_dimensions* dimensions.
Randomly permute an array of * count * sample values each of which has * n_dimensions * dimensions .
samp
&mut [T]
count
i32
n_dimensions
i32
rng
&mut Rng