Skip to main content

triangle_random

Function triangle_random 

Source
fn triangle_random(mode: f64, deviation: f64) -> f64
Expand description

Generates a random value using triangle distribution.

Mirrors vanilla’s RandomSource.triangle(mode, deviation). Produces values centered around mode with a spread of deviation.