Generate random number between 0 and a non-integer value

1 Ansicht (letzte 30 Tage)
Matt
Matt am 11 Sep. 2015
Kommentiert: Matt am 11 Sep. 2015
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?

Akzeptierte Antwort

James Tursa
James Tursa am 11 Sep. 2015
Bearbeitet: James Tursa am 11 Sep. 2015
rand * your_non_integer_value
  1 Kommentar
Matt
Matt am 11 Sep. 2015
Fair play, and stupid me, when I think about it it is easy. Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by