How can I generate random numbers in Python?

后端 未结 2 1668
囚心锁ツ
囚心锁ツ 2021-02-05 16:41

Are there any built-in libraries in Python or Numpy to generate random numbers based on various common distributions, such as:

  • Normal
  • Poisson
  • Exp
2条回答
  •  北海茫月
    2021-02-05 17:44

    The random module has tons of functions for generating random numbers in lots of way. Not sure it has multi-variate.

    Numpy.random would be the next place to look.

提交回复
热议问题