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

5 vues (au cours des 30 derniers jours)
friedl hulsmans
friedl hulsmans le 15 Nov 2017
Commenté : Chandrasekhar le 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?

Réponses (1)

Chandrasekhar
Chandrasekhar le 15 Nov 2017
>>randi([9.9775 10.0225])
  4 commentaires
friedl hulsmans
friedl hulsmans le 15 Nov 2017
thank you. This one works :)
Chandrasekhar
Chandrasekhar le 15 Nov 2017
welcome, please accept the answer if it works :)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by