In this paper, the Chen chaotic system is proposed as a pseudorandom sequence generator. A new algorithm is created to solve the problem of non-uniform distribution of the sequence generated by the Chen chaotic system. Statistical tests and security analysis show that it has good pseudorandom characteristics and is highly capable of withstanding attacks.