Randperm for decimals/below 1

1 Ansicht (letzte 30 Tage)
Kash022
Kash022 am 15 Dez. 2016
Beantwortet: José-Luis am 15 Dez. 2016
I need to generate 16 unique random numbers between 0 and 1.3. However, randperm does not allow me to go below 1 nor does it allow decimals. Please let me know how to do this.
Thanks!

Akzeptierte Antwort

José-Luis
José-Luis am 15 Dez. 2016
result = rand(16,1) .* 1.3;

Weitere Antworten (0)

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!

Translated by