generates a exponential distributed random number according to lambda
function randomexp input Real lambda; input Real r128 "A random number with a uniform distribution on the interval (0,1]"; output Real delay; end randomexp;