Function smartnoise_runtime::utilities::noise::sample_binomial[][src]

pub fn sample_binomial(
    n: i64,
    prob: f64,
    enforce_constant_time: bool
) -> Result<i64>

Sample from the binomial distribution.

Arguments

Return

Number of successful trials