필터 지우기
필터 지우기

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 CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by