Function malachite_base::num::conversion::string::options::random::random_to_sci_options
source · [−]pub fn random_to_sci_options(
seed: Seed,
m_size_numerator: u64,
m_size_denominator: u64
) -> RandomToSciOptionsⓘNotable traits for RandomToSciOptionsimpl Iterator for RandomToSciOptions type Item = ToSciOptions;
Expand description
Generates random ToSciOptions
s.
The scales, precisions, and the negative of the negative exponenet threshold are chosen from a
geometric distribution whose mean is the ratio m_size_numerator / m_size_denominator
.
Panics
Panics if m_size_numerator
or m_size_denominator
are zero, or, if after being reduced to
lowest terms, their sum is greater than or equal to $2^{64}$.
The output length is infinite.