[英]What is the maximum number of pseudo-random numbers that can be generated with numpy.random before the sequence begins to repeat?
I need to generate many hundreds of millions of random numbers for a clustering analysis. 我需要生成数亿个随机数以进行聚类分析。 I am using numpy.random and was wondering if anyone knows the maximum number of pseudo-randoms that can be generated with numpy.random before the sequence begins to repeat?
我正在使用numpy.random,想知道是否有人知道在序列开始重复之前numpy.random可以生成的最大伪随机数? A quick look in the numpy documentation didn't help.
快速浏览numpy文档并没有帮助。
I know I can generate numbers in chunks using different seeds, but I'm curious as to the maximum number. 我知道我可以使用不同的种子成块地生成数字,但是我对最大数量感到好奇。
It is, I believe, Mersenne Twister with period 2 19937 -1 我相信这是Mersenne Twister,其时期2 19937 -1
https://docs.scipy.org/doc/numpy-1.15.1/reference/generated/numpy.random.set_state.html https://docs.scipy.org/doc/numpy-1.15.1/reference/generated/numpy.random.set_state.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.