请问如何生成三角分布的随机数?。

三角分布是这样的 :(5,10,7)最小值是5 最大值是10 最有可能的值是7
运用蒙特卡洛进行10000次抽样取平均值。如何生成一个这样的随机数(生成一个即可)?
谢谢!!

 采纳的回答

x= random(makedist('Triangular','a',5,'b',7,'c',10),1,10000)

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 随机数生成 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!