Is there a better way to do this in Rust?
let mut current_index = rng.gen_range(0, 5); while current_index == previous_index { current_index = rng.gen_range(0, 5); }
Aucun commentaire:
Enregistrer un commentaire