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

18 visualizaciones (últimos 30 días)
Jay Hanuman
Jay Hanuman el 22 de Oct. de 2016
Comentada: AB WAHEED LONE el 1 de Feb. de 2021
I want to generate single random number which is in between 0.86 and 1. how to generate it.

Respuestas (1)

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

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by