Basic featureset
This commit is contained in:
parent
8ab08d7c49
commit
a6b357bfef
1 changed files with 12 additions and 1 deletions
13
src/main.rs
13
src/main.rs
|
@ -1,3 +1,14 @@
|
||||||
|
use rand::Rng;
|
||||||
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
let foods = [ "Kapsalon"
|
||||||
|
, "Pizza"
|
||||||
|
, "Lasagne"
|
||||||
|
, "Nachos"
|
||||||
|
, "Friet"
|
||||||
|
, "Durum"
|
||||||
|
];
|
||||||
|
let secret_num = rand::thread_rng().gen_range(0..foods.len());
|
||||||
|
println!("{}", foods[secret_num])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue