working version

This commit is contained in:
2026-10-23 11:04:00 -04:00
parent 1666e510f8
commit 10be3d6db8
5 changed files with 301 additions and 0 deletions

16
src/main.rs Normal file
View File

@@ -0,0 +1,16 @@
use rand::seq::IndexedRandom;
use rand::RngExt;
const WORDS: &str = include_str!("../words.txt");
fn main() {
let words: Vec<&str> = WORDS.lines().collect();
let mut rng = rand::rng();
let word = words.choose(&mut rng).expect("word list is empty");
let number = rng.random_range(0..10000);
println!("{}{:04}", word, number);
}