Skip to main content

sample_parameter

Function sample_parameter 

Source
pub fn sample_parameter<T: Float>(
    range: &ParameterRange<T>,
    rng: &mut StrategyRng,
) -> f64
Expand description

Draw one value for range from its declared distribution.

Every DistributionType is sampled for real; none of them silently degrades to uniform, which is what the previous _ => uniform arm did for four of the five variants. All draws are transformed back into [min_value, max_value], so a configuration is always in-range.