List x must be non-empty. ... use rand::seq::SliceRandom;. let mut rng = rand::thread_rng(); let choice = x.choose(&mut rng).unwrap(); ...
確定! 回上一頁