random numbers in between two ranges

3 ビュー (過去 30 日間)
Mudasir Ahmed
Mudasir Ahmed 2015 年 6 月 13 日
コメント済み: Mudasir Ahmed 2015 年 6 月 13 日
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 日
a=20
b=50
n=1000
v=a+(b-a)*rand(1,n)
  1 件のコメント
Mudasir Ahmed
Mudasir Ahmed 2015 年 6 月 13 日
thanks sir :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by