Generating a random number based on a distribution function

前端 未结 0 1300
执念已碎
执念已碎 2021-01-22 20:39

We can generate random numbers in an interval [a,b] easily if we want to make it uniformely:

A=rand()*(b-a) + a,

where rand() is a function which can generate a un

相关标签:
回答
  • 消灭零回复
提交回复
热议问题