In this paper a digital watermarking algorithm based on discrete cosine transform is discussed, The random sequences generated by the random sequences generation was used as the robust watermarking, and the watermarking is added based on discrete cosine transform through some strategy of adjusting the location of watermarking embedded in the random sequence is used. The experimental results indicate that it is robust to many operations to digital signal, such as filter, resample and so on.