在限制条件下生成随机数的问题。
Show older comments
求教,需要生成系列随机数,要求生成3个随机数,总和为18,且要求每个随机数的范围在[0,12]内,该如何生成?谢谢
Accepted Answer
More Answers (0)
Categories
Find more on 随机数生成 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!