Generate random numbers with constraints

I want to generate three random numbers lets say r1, r2 and r3 but the sum of these three numbers must equal to 1. any help?

Catégories

En savoir plus sur Random Number Generation dans Centre d'aide et File Exchange

Produits

Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by