generating random number with a specific distribution in c

前端 未结 2 1451
生来不讨喜
生来不讨喜 2020-12-31 10:59

i need a library with functions for generating random number, given average, standard deviation and using one of three distribution - exponential, normal or unified.

<
2条回答
  •  伪装坚强ぢ
    2020-12-31 11:56

    May I recommend the GNU Scientific Library either for use or for inspiration? It has several Random Number Distributions and is designed to be used from C and C++.

提交回复
热议问题