Non-Uniform Random Number Generator Implementation?

前端 未结 8 2110
北恋
北恋 2021-01-05 19:03

I need a random number generator that picks numbers over a specified range with a programmable mean.

For example, I need to pick numbers between 2 and 14 and I need

8条回答
  •  独厮守ぢ
    2021-01-05 19:53

    Based on the Wikipedia sub-article about non-uniform generators, it would seem you want to apply the output of a uniform pseudorandom number generator to an area distribution that meets the desired mean.

提交回复
热议问题