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

1 visualizzazione (ultimi 30 giorni)
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?

Risposte (1)

Chandrasekhar
Chandrasekhar il 15 Nov 2017
>>randi([9.9775 10.0225])
  4 Commenti
Chandrasekhar
Chandrasekhar il 15 Nov 2017
welcome, please accept the answer if it works :)

Accedi per commentare.

Categorie

Scopri di più su Random Number Generation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by