フィルターのクリア

Generate random decimal value

4 ビュー (過去 30 日間)
Wen Shu Wong
Wen Shu Wong 2020 年 12 月 2 日
コメント済み: Cris LaPierre 2020 年 12 月 2 日
How to generate random decimal value between 1.00 to 2.00?

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 12 月 2 日
r=rand+1
r = 1.5233
  4 件のコメント
Wen Shu Wong
Wen Shu Wong 2020 年 12 月 2 日
Thank you. Is it possible to create a left skewed distribution from the distribution above? I can't seem to find any resources on this.
Cris LaPierre
Cris LaPierre 2020 年 12 月 2 日
rand creates a uniform distribution. You might look into the pearsrnd function, as that lets you define your distribution by setting the mean, standard deviation, skewness and kurtosis.

サインインしてコメントする。

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