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?

类别

在 帮助中心 和 File Exchange 中查找有关 Random Number Generation 的更多信息

产品

版本

R2020b

回答:

2022-12-15

Community Treasure Hunt

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

Start Hunting!

Translated by