Wave simulation is a hot topic of Ocean Engineering. This article summarizes a method that can adapt to a wide range of random wave spectrums to emulate the waves environmentally. The method is converted to computer programs which are simple and convenie