pub fn from_seed(algorithm: RandomNumberAlgorithm, seed: u64) -> Box<dyn RandomNumber> {
    match algorithm {
        RandomNumberAlgorithm::MersenneTwister => Box::new(MersenneTwister::from_seed(seed)),
        RandomNumberAlgorithm::MiddleSquareWeylSequence => Box::new(MiddleSquaresWeylSequence::from_seed(seed)),
        RandomNumberAlgorithm::XorshiftPlus => Box::new(XorshiftPlus::from_seed(seed)),
        RandomNumberAlgorithm::Xoshiro256SS => Box::new(Xoshiro256SS::from_seed(seed)),
    }
}
/// Generates a new random number generator using the given implementation, seeded with
/// the given `u64`.
Generates a new random number generator using the given implementation, seeded with
the given `u64`.
Generates a new random number generator using the given implementation seeded with the given ` u64 ` .
pub fn from_seed(algorithm: RandomNumberAlgorithm, seed: u64) -> Box<dyn RandomNumber> {
    match algorithm {
        RandomNumberAlgorithm::MersenneTwister => Box::new(MersenneTwister::from_seed(seed)),
        RandomNumberAlgorithm::MiddleSquareWeylSequence => Box::new(MiddleSquaresWeylSequence::from_seed(seed)),
        RandomNumberAlgorithm::XorshiftPlus => Box::new(XorshiftPlus::from_seed(seed)),
        RandomNumberAlgorithm::Xoshiro256SS => Box::new(Xoshiro256SS::from_seed(seed)),
    }
}
pub fn from_seed ( algorithm : RandomNumberAlgorithm , seed : u64 ) -> Box < dyn RandomNumber > { match algorithm { RandomNumberAlgorithm :: MersenneTwister => Box :: new ( MersenneTwister :: from_seed ( seed ) ) , RandomNumberAlgorithm :: MiddleSquareWeylSequence => Box :: new ( MiddleSquaresWeylSequence :: from_seed ( seed ) ) , RandomNumberAlgorithm :: XorshiftPlus => Box :: new ( XorshiftPlus :: from_seed ( seed ) ) , RandomNumberAlgorithm :: Xoshiro256SS => Box :: new ( Xoshiro256SS :: from_seed ( seed ) ) , } }
Generates a new random number generator using the given implementation, seeded with
the given `u64`.
Generates a new random number generator using the given implementation seeded with the given ` u64 ` .
algorithm
RandomNumberAlgorithm
seed
u64
algorithm
RandomNumberAlgorithm
seed
u64