fn random_account_different_than(&self, rng: &mut StdRng, other: &Account) -> Option<Account> {
        if !self.accounts.values().any(|a| a != other) {
            return None;
        }
        loop {
            let account = self.random_account(rng)?;
            if account == *other {
                continue;
            }
            return Some(account);
        }
    }
/// Chooses a random account different than 'other'.
Chooses a random account different than 'other'.
Chooses a random account different than ' other ' .
fn random_account_different_than(&self, rng: &mut StdRng, other: &Account) -> Option<Account> {
        if !self.accounts.values().any(|a| a != other) {
            return None;
        }
        loop {
            let account = self.random_account(rng)?;
            if account == *other {
                continue;
            }
            return Some(account);
        }
    }
fn random_account_different_than ( & self , rng : & mut StdRng , other : & Account ) -> Option < Account > { if ! self . accounts . values ( ) . any ( | a | a != other ) { return None ; } loop { let account = self . random_account ( rng ) ? ; if account == * other { continue ; } return Some ( account ) ; } }
Chooses a random account different than 'other'.
Chooses a random account different than ' other ' .
&self
rng
&mut StdRng
other
&Account
&self
rng
&mut StdRng
other
&Account