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개)

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

제품

태그

질문:

2015년 6월 13일

댓글:

2015년 6월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by