/// Fuction check with theres a branch char or '|'
/// returning one of the elements in tokens using the classic rng
Fuction check with theres a branch char or '|'
returning one of the elements in tokens using the classic rng
Fuction check with theres a branch char or ' | ' returning one of the elements in tokens using the classic rng
fn choose_token(tokens: String) -> String {
    let mut secret_number = rand::thread_rng();
    return match tokens.split('|').choose(&mut secret_number) {
        Some(token) => String::from(token),
        None => String::from(""),
    };
}
fn choose_token ( tokens : String ) -> String { let mut secret_number = rand :: thread_rng ( ) ; return match tokens . split ( '|' ) . choose ( & mut secret_number ) { Some ( token ) => String :: from ( token ) , None => String :: from ( " " ) , } ; }
Fuction check with theres a branch char or '|'
returning one of the elements in tokens using the classic rng
Fuction check with theres a branch char or ' | ' returning one of the elements in tokens using the classic rng
tokens
String