How to make a random number generator with a normal distribution in matlab
1 次查看(过去 30 天)
显示 更早的评论
Hey How to make a random number generator. I want numbers to be from some x-y range, e.g. 1-5. so that I can choose how many of these results should be N = k np. N = 150 and so that I can choose the distribution of these results, eg normal distribution, oblique. I need to generate results with different distributions. So, for example, 160 results with a normal, oblique distribution, etc. so that I could then throw them into my model. How to do it ?
0 个评论
回答(1 个)
Sean de Wolski
2018-1-25
编辑:Sean de Wolski
2018-1-25
Use makedist to make a distribution object with the appropriate parameters and then call random on it"
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Random Number Generation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!