How to make a random number generator with a normal distribution in matlab
조회 수: 4 (최근 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!