partial function Var input Generator g "Random number generator"; input Real a = 0 "First parameter of the prob. distribution"; input Real b = 0 "Second parameter of the prob. distribution"; input Real c = 0 "Third parameter of the prob. distribution (only for the Johnson and Triangular distributions)"; input Real d = 0 "Fourth parameter of the prob. distribution (only for the Johnson distribution)"; output Real x "Generated random variate"; output Generator gout "Updated random number generator"; end Var;