Better random for quiz

This commit is contained in:
2026-02-10 17:25:39 +03:00
parent 87a9fae91a
commit db2eb22c02
3 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ impl KanaSet {
pub fn next(&mut self) -> (String, String) {
let current_set = self.list();
let mut rand = rand::rng();
let index: u32 = rand.random();
current_set[index as usize % current_set.len()].clone()