I am not quite sure how to create 5 random numbers between 0 and 10.
1 次查看(过去 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 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!