I am not quite sure how to create 5 random numbers between 0 and 10.

1 回表示 (過去 30 日間)
Allyson
Allyson 2014 年 2 月 13 日
回答済み: Azzi Abdelmalek 2014 年 2 月 13 日
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 Center および File ExchangeElementary Math についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by