random fun.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hi, is there way to chose one no. from two numbers randomly for ex. 2,3 i.e each time chose 2 or 3 randomly
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Andrew Newell
am 23 Jan. 2012
randint + 2;
or
randint(m,n) + 2;
for a matrix of random numbers.
or
R = a + randint(m,n)*(b-a);
to choose between any two integers a and b.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Random Number Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!