random.h マニュアル

(The documentation of random.h)

Last update: 2025/8/7


random.hでは 乱数を用いて様々な処理を行う関数が定義されている。 このヘッダファイル内で定義されている関数を以下に示す。 各関数の詳細は関数名をクリックしてリンク先を参照のこと。
Functions to conduct various processings using random values are defined in random.h. Functions defined in this header file are listed below. For details of individual functions, click the links.

関数名
Function name
機能・用途
Purpose
generate_gaussian_noise_value 頻度分布がガウス関数となる乱数(の1つの値)を生成する。
Generate a single random value that obeys a Gaussian frequency distribution.
generate_gaussian2D_random_value 頻度分布が2次元ガウス分布となる2次元空間内の乱数(の1つの値)を生成する。
Generate a single random value in a 2D space that obeys a 2D Gaussian frequency distribution.
random_divide_groups_givenNumbers データセットをいくつかのグループにランダムに分割する。 各グループに入れるデータ数を指定するバージョン。
Divide a data set into several groups randomly, by specifying the number of data to be assigned to each group.
random_divide_2groups_givenNumber データセットを2つのグループにランダムに分割する。 最初のグループに入れるデータ数を指定するバージョン。
Divide a data set into two groups randomly, by specifying the number of data to be assigned to the earlier group.
random_divide_2groups_givenRatio データセットを2つのグループにランダムに分割する。 最初のグループに入れるデータの比率を指定するバージョン。
Divide a data set into two groups randomly, by specifying the ratio of data to be assigned to the earlier group.