Random Number generation with defined decimal points
显示 更早的评论
I have a limit between 1.4 and 2.5, so i need ot generate random number between these limits.
回答(2 个)
Bhaskar R
2020-2-6
num = ( 2.5 - 1.4)*rand + 1.4;
类别
在 帮助中心 和 File Exchange 中查找有关 Random Number Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!