Clear Filters
Clear Filters

Generate random number between 0 and a non-integer value

5 views (last 30 days)
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?

Accepted Answer

James Tursa
James Tursa on 11 Sep 2015
Edited: James Tursa on 11 Sep 2015
rand * your_non_integer_value

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!