How to generate array of random number ensuring their sum is always 1?

hello everyone,

I want a code, where I want to generate a matrix of the random numbers (eg: 100 rows X 4 columns) but at the same time I want to ensure that for every row which is created in the matrix has sum = 1