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