how to generates random numbers ?

hello anyone know how to generate random number as N*1 vector but their summation should be specific number for example if this number is 5 the random numbers should be {3 0 2}or{1 2 1} or any combination that give summation of 5

 Respuesta aceptada

Más respuestas (0)

Categorías

Más información sobre Random Number Generation en Centro de ayuda y File Exchange.

Preguntada:

el 29 de Jun. de 2016

Comentada:

el 30 de Jun. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by