フィルターのクリア

Randperm for decimals/below 1

2 ビュー (過去 30 日間)
Kash022
Kash022 2016 年 12 月 15 日
回答済み: José-Luis 2016 年 12 月 15 日
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!

採用された回答

José-Luis
José-Luis 2016 年 12 月 15 日
result = rand(16,1) .* 1.3;

その他の回答 (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