Random Number generation with defined decimal points
Mostrar comentarios más antiguos
I have a limit between 1.4 and 2.5, so i need ot generate random number between these limits.
Respuestas (2)
Bhaskar R
el 6 de Feb. de 2020
num = ( 2.5 - 1.4)*rand + 1.4;
Walter Roberson
el 6 de Feb. de 2020
0 votos
rand*1.1+1.4
Categorías
Más información sobre Random Number Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!