Static site generator + my presonnal website written in rust for some reason.
1use rand::Rng; 2 3pub fn get_quote() -> &'static str { 4 let vs = vec![ 5"Silliness and tomfooler are afoot, and who am I to stop it.", 6"Low entropy self replicating phenomenon that generates a binding force called compassion.", 7"I was born in the late Holocene and I've seen some shit.", 8"If there's a deal meant for you, any wild place on earth will do.", 9"Live long and prosper.", 10"Prometheus they say brought gods fire down to man and we've caught it tamed it trained it since our history began.", 11"Oh, so, wenn PETER PARKER eine Reizüberflutung hat, dann sind es \"Spidey-Sinne\", aber wenn ich es tue, ICH HABE AUTISM.", 12"Guess we are doing Rust now", 13]; 14 let mut rng = rand::thread_rng(); 15 match vs.get(rng.gen_range(0..vs.len())) { 16 Some(quote) => quote, 17 None => "You have caught me off guard.", 18 } 19}