マルチメディアプログラミングによる基本的分布の乱数発生プログラム

好庸 岡村, 岩田, 佳治, Kazuo Haruyama · Institutional Repositories DataBase (IRDB) · 1999

A software for generating the basic dist,ributions of random numbers such as uniform distribution in an arbitrary region, normal distribution, exponential distribution and Poisson distribution is developed by using Visual Basic (version 4), which we call multi-media prograrning language.Those distributions are obtained by redistributing the random numbers of generatig function RND.The results can be compared with the theoretical curves and give the good agreements.1. はじめに プログラミング言語には一般に乱数を発生させ る関数が用意されている.Visual BasicではRND が0以上1未満の値を返す乱数発生関数である.た だし初期シード値が変わらない限り,一連のRND 関数が返す乱数系列は同じになるので,使用にあ たりシステムタイマーから新しいシード値を取得 して乱数ジェネレータを初期化する方法が通常用 いられる.これにはRandomizeステートメントを 実行するとよい1).このように得られた乱数系列 は区間[0,1)の一様疑似乱数となる.

Cited by 0 works. Open-access PDF

Authors