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”.

채택된 답변

Azzi Abdelmalek
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개)

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by