hi
i want one random number generated between two ranges Like 20 and 50. i there any command who can do this. kindly help me
regards

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 6 月 13 日
編集済み: Azzi Abdelmalek 2015 年 6 月 13 日

0 投票

a=20
b=50
n=1000
v=a+(b-a)*rand(1,n)

その他の回答 (0 件)

カテゴリ

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by