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

18 Ansichten (letzte 30 Tage)
Jay Hanuman
Jay Hanuman am 22 Okt. 2016
Kommentiert: AB WAHEED LONE am 1 Feb. 2021
I want to generate single random number which is in between 0.86 and 1. how to generate it.

Antworten (1)

Star Strider
Star Strider am 22 Okt. 2016
Try this:
desired_random_number = 0.86 + (1 - 0.86) * rand;

Kategorien

Mehr zu Random Number Generation 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