How can I generate random varaible from 0 to 1 without including 0?
8 views (last 30 days)
Show older comments
Mira le on 12 Sep 2021
Commented: Rik on 12 Sep 2021
Hello every one,
I want to generate random values between 0 and 1, but not 0
I don t want to generate 0 as a random value.
Dave B on 12 Sep 2021
The rand function generates randum numbers between 0 and 1, not including 0 or 1:
More Answers (0)
Find more on Random Number Generation 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!