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?

Categories

Find more on Random Number Generation in Help Center and File Exchange

Products

Release

R2020b

Asked:

on 15 Dec 2022

Answered:

on 15 Dec 2022

Community Treasure Hunt

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

Start Hunting!