generates a triangular distributed random number according to a, b and c
function randomdis input Real E[:] "Events of Discrete Distribution"; input Real P[:] "Probability of Discrete Distribution"; input Real r128 "A random number with a uniform distribution on the interval (0,1]"; output Real timeValue; end randomdis;