Generate random decimal value
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Wen Shu Wong
le 2 Déc 2020
Commenté : Cris LaPierre
le 2 Déc 2020
How to generate random decimal value between 1.00 to 2.00?
0 commentaires
Réponse acceptée
Cris LaPierre
le 2 Déc 2020
r=rand+1
4 commentaires
Cris LaPierre
le 2 Déc 2020
rand creates a uniform distribution. You might look into the pearsrnd function, as that lets you define your distribution by setting the mean, standard deviation, skewness and kurtosis.
Plus de réponses (0)
Voir également
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!