Non-Uniform Random Number Generator Implementation?

前端 未结 8 2057
北恋
北恋 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:55

    You need a distributed / weighted random number generator. Here's a reference to get you started.

提交回复
热议问题