Generate random number between 0 and a non-integer value

2 visualizzazioni (ultimi 30 giorni)
For my project I need to generate a random number between 0 and a non-integer value (eg. 0.854, 2.534). How can I do that in Matlab?

Risposta accettata

James Tursa
James Tursa il 11 Set 2015
Modificato: James Tursa il 11 Set 2015
rand * your_non_integer_value

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices 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