GSL(GNU Scientific Library)参考手册/随机数发生器

随机数发生器

编辑

本库提供了一批随机数发生器,它们可由一个通用接口访问。可以通过环境变量实时的选择不同的随机数发生器和随机数种子,以便在不同的生成器间切换,而不必重新编译。 Each instance of a generator keeps track of its own state, allowing the generators to be used in multi-threaded programs. Additional functions are available for transforming uniform random numbers into samples from continuous or discrete probability distributions such as the Gaussian, log-normal or Poisson distributions.

这些函数在头文件 gsl_rng.h 中声明。