Aiming at the problem that it is difficult for software to generate high-quality random number, this paper presents a random number generation algorithm based on parallel structure. This algorithm uses related systems and data buffering mechanisms. It uses the time difference of reading process and writing process to realize the dynamics of buffer region data and upgrade the quality of random number. Test results on random sequence generated by this algorithm show that its pass rate is higher than 99.7% in the NIST 800-22 standard.