Effacer les filtres
Effacer les filtres

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

14 vues (au cours des 30 derniers jours)
Jay Hanuman
Jay Hanuman le 22 Oct 2016
Commenté : AB WAHEED LONE le 1 Fév 2021
I want to generate single random number which is in between 0.86 and 1. how to generate it.

Réponses (1)

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


En savoir plus sur Random Number Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by