Fastest Way to generate 1,000,000+ random numbers in python

后端 未结 6 710
时光取名叫无心
时光取名叫无心 2020-12-13 19:28

I am currently writing an app in python that needs to generate large amount of random numbers, FAST. Currently I have a scheme going that uses numpy to generate all of the n

6条回答
  •  别那么骄傲
    2020-12-13 20:23

    As others have already pointed out, numpy is a very good start, fast and easy to use.

    If you need random numbers on a massive scale, consider eas-ecb or rc4. Both can be parallelised, you should reach performance in several GB/s.

    achievable numbers posted here

提交回复
热议问题