generates a triangular distributed random number according to a, b and c
function randomtriangular input Real a "Lower limit"; input Real b "Upper limit"; input Real c "Most likely value"; input Real r128 "A random number with a uniform distribution on the interval (0,1]"; output Real delay; end randomtriangular;