Computation of sea-wave direction of propagation of random waves