how to generate non integer random number in between two numbers.

16 views (last 30 days)
I want to generate single random number which is in between 0.86 and 1. how to generate it.

Answers (1)

Star Strider
Star Strider on 22 Oct 2016
Try this:
desired_random_number = 0.86 + (1 - 0.86) * rand;

Categories

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!