You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use rand::thread_rng;
|
|
use crate::all_sayings::all_sayings;
|
|
use rand::prelude::IteratorRandom;
|
|
|
|
pub fn random_saying() ->String{
|
|
all_sayings().iter().choose(&mut thread_rng()).expect("saying error").to_string()
|
|
}
|