Two teams try and fill in any horizontal, vertical, or diagonal line on a bingo board by playing maps on osu! osu.bingo
osu
at microservice 13 lines 288 B view raw
1use rand::{Rng, distr::Alphanumeric}; 2 3const ID_LENGTH: usize = 12; 4 5pub fn generate(prefix: &str) -> String { 6 let bytes: String = rand::rng() 7 .sample_iter(&Alphanumeric) 8 .take(ID_LENGTH) 9 .map(char::from) 10 .collect(); 11 12 format!("{prefix}_{bytes}") 13}