Based on the theory of nonlinear random dynamic and ship oscillatory motions, by analyzing the spectrum of the random ocean wave and the force of the ship, the roll and pitch motion equations were erected respectively, then the irregular waves were created according to the superposition theory. Meanwhile, the coupling motion between rolling and heaving was studied, then the time-domain responses were the driving data of the motions simulation. Using VisualBasic, the interaction interface was established. Using MATLAB, the motions were solved. Using OpenGL the 3-D model of ship was described. We just need input the ship and environment parameters then the results will be displayed with the 2-D figures and the 3-D model quickly, then the visualization of ship motions simulation is achieved. The program developed can simulate 3-D ships and can be used for designers to analyze the properties of ship intuitively.