Filter löschen
Filter löschen

random numbers in between two ranges

2 Ansichten (letzte 30 Tage)
Mudasir Ahmed
Mudasir Ahmed am 13 Jun. 2015
Kommentiert: Mudasir Ahmed am 13 Jun. 2015
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

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 13 Jun. 2015
Bearbeitet: Azzi Abdelmalek am 13 Jun. 2015
a=20
b=50
n=1000
v=a+(b-a)*rand(1,n)

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by