The purpose of this document is to provide relevant information on the mathematical models and numerical techniques for the simulation of spectra of random short-crested, wind-generated waves in coastal regions. Furthermore, this document explains the essential steps involved in the implementation of various numerical methods, and thus provides an adequate reference with respect to the structure of the SWAN program.