i want produce a random number between 2 and 10 for example...

2 次查看(过去 30 天)
how can produce a random integer number that are not started with 1?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-10-19

更多回答(1 个)

LY Cao
LY Cao 2013-10-19
randi(9)+1

类别

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