I am not quite sure how to create 5 random numbers between 0 and 10.
조회 수: 6 (최근 30일)
이전 댓글 표시
The question goes on to ask to create a seed and save its value to a variable named “SeedInfo” using “rng”.
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2014년 2월 13일
s(1)=rng
randi([0 10],1,5)
to get the same sequence
rng(s(1))
randi([0 10],1,5)
댓글 수: 0
추가 답변 (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!