How can I get a random number between 9.9775 and 10.0225?

1 回表示 (過去 30 日間)
friedl hulsmans
friedl hulsmans 2017 年 11 月 15 日
コメント済み: Chandrasekhar 2017 年 11 月 15 日
I would like to generate a monte carlo simulation. I need my input values to change randomly between 9.9775 and 10.0225. How can I progamme this in matlab?

回答 (1 件)

Chandrasekhar
Chandrasekhar 2017 年 11 月 15 日
>>randi([9.9775 10.0225])
  4 件のコメント
friedl hulsmans
friedl hulsmans 2017 年 11 月 15 日
thank you. This one works :)
Chandrasekhar
Chandrasekhar 2017 年 11 月 15 日
welcome, please accept the answer if it works :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by