How to generate random number within a range?

 Risposta accettata

>> 0.2+(1-0.2)*rand()
ans =
0.85178

2 Commenti

thank you
@VIJAY: please don't forget to accept my answer!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Random Number Generation in Centro assistenza e File Exchange

Tag

Richiesto:

il 27 Gen 2020

Commentato:

il 27 Gen 2020

Community Treasure Hunt

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

Start Hunting!

Translated by