fn shuffle(&self) -> Vec<i32> {
        use rand::Rng;

        let mut rng = rand::thread_rng();
        let mut v = self.nums.clone();
        for i in 0..self.nums.len() {
            v.swap(rng.gen_range(0..self.nums.len()), i);
        }
        v
    }
/** Returns a random shuffling of the array. */
Returns a random shuffling of the array.
Returns a random shuffling of the array .
fn shuffle(&self) -> Vec<i32> {
        use rand::Rng;
        let mut rng = rand::thread_rng();
        let mut v = self.nums.clone();
        for i in 0..self.nums.len() {
            v.swap(rng.gen_range(0..self.nums.len()), i);
        }
        v
    }
fn shuffle ( & self ) -> Vec < i32 > { use rand :: Rng ; let mut rng = rand :: thread_rng ( ) ; let mut v = self . nums . clone ( ) ; for i in 0 .. self . nums . len ( ) { v . swap ( rng . gen_range ( 0 .. self . nums . len ( ) ) , i ) ; } v }
Returns a random shuffling of the array.
Returns a random shuffling of the array .
&self
&self