Generate random number between 0 and a non-integer value

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

rand * your_non_integer_value

1 Comment

Fair play, and stupid me, when I think about it it is easy. Thanks!

Sign in to comment.

More Answers (0)

Categories

Asked:

on 11 Sep 2015

Commented:

on 11 Sep 2015

Community Treasure Hunt

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

Start Hunting!