randomly choose samples from the given array arr: the pool of candidates num: the number of you want; **note that the num should <= arr.len() if w/o replacement replacement: whether allow repeated samples in the choice true: allowed false: not allowed return: Vector of randomly choosen samples
(&mut self, arr: &Vec<T>, num: usize, replacement: bool)