The algorithms described in the preceding subsections are for some probability distributions commonly used in hydrosystems engineering and analysis. One might encounter other types of probability distributions in an analysis that are not described herein. There are several books that have been written for generating univariate random numbers (Rubinstein, 1981; Dagpunar, 1988; Gould and Tobochnik, 1988; Law and Kelton, 1991). To facilitate the implementation of Monte Carlo simulation, computer subroutines in different languages are available (Press et al., 1989, 1992, 2002; IMSL, 1980). In addition, many other spreadsheet-based computer software, such as Microsoft Excel, @Risk, and Crystal Ball, contain statistical functions allowing the generation of random variates of various distributions.