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;
Walter Roberson
2020 年 2 月 6 日
0 投票
rand*1.1+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!