2024-03-21 11:35:32 +01:00
|
|
|
use rand::Rng;
|
|
|
|
|
|
|
|
|
2024-03-21 11:26:59 +01:00
|
|
|
fn main() {
|
2024-03-21 11:35:32 +01:00
|
|
|
let foods = [ "Kapsalon"
|
|
|
|
, "Pizza"
|
|
|
|
, "Lasagne"
|
|
|
|
, "Nachos"
|
|
|
|
, "Friet"
|
|
|
|
, "Durum"
|
|
|
|
];
|
|
|
|
let secret_num = rand::thread_rng().gen_range(0..foods.len());
|
|
|
|
println!("{}", foods[secret_num])
|
2024-03-21 11:26:59 +01:00
|
|
|
}
|