Running the code:
use macroquad::{logging as log, rand::ChooseRandom};
#[macroquad::main(window_conf)]
async fn main() {
let mut results = [0;4];
for _ in 0..100 {
let mut test = vec![0,1,2,3];
test.shuffle();
results[test[0]] += 1;
}
log::info!("results: {:?}", results);
}
consistently gives the output:
whereas I'd expect something more like:
results: [25, 26, 25, 24]