HOME > テクニカルサポート > 製品 一覧 > SigmaPlot > ユーザーガイド > トランスフォーム関数一覧
ヒューリンクステクニカルサポート
皆様からのご質問のうち、よくある質問を掲載しました。
更新日: 14/05/08

random

この関数は、指定した個数の一様分布する乱数を範囲内に生成します。関数 random は、rand および rnd と入力しても機能します。

 

構文

random(number, seed, low, high)

引数 number には、生成する乱数の個数を指定します。

引数 seed は、この関数によって使用される乱数発生の種 (シード) です。発生させる乱数の配列を毎回違うものにしたい場合は、引数 seed に 0/0 を指定します。引数 seed を省略するとこの値は無作為に選択されます。

引数 lowhigh は、乱数が分布する範囲の下限と上限の値を指定します。下限値はその値を範囲に含みます。引数 lowhigh が省略されると規定値として 0 と 1 が使用されます。

Note: 関数の引数は右から左に省略していく点に注意してください。従って、上限の引数 high を指定したい場合は、先に下限の引数 low を指定しておく必要があります。

 

 

関連情報

 

 

random

This function generates a specified number of uniformly distributed numbers within the range. Rand and rnd are synonyms for the random function.

Syntax

random(number,seed,low,high)

The number argument specifies how many random numbers to generate.

The seed argument is the random number generation seed to be used by the function. If you want to generate a different random number sequence each time the function is used, enter 0/0 for the seed. If the seed argument is omitted, a randomly selected seed is used. The low and high arguments specify the beginning and end of the random number distribution range.

The low boundary is included in the range. If low and high are omitted, they default to 0 and 1, respectively.

Note: Function arguments are omitted from right to left. If you want to specify a high boundary, you must specify the low boundary argument first.

Example

The operation random(50,0/0,1,7) produces 50 uniformly distributed random numbers between 1 and 7. The sequence is different each time this random function is used.

 

関連情報

 

前のページにもどる