MATLAB Answers

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

1 view (last 30 days)
friedl hulsmans
friedl hulsmans on 15 Nov 2017
Commented: Chandrasekhar on 15 Nov 2017
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?

  0 Comments

Sign in to comment.

Answers (1)

Chandrasekhar
Chandrasekhar on 15 Nov 2017
>>randi([9.9775 10.0225])

  4 Comments

Show 1 older comment

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!