文件名称:Mersenne-Twister
介绍说明--下载内容来自于网络,使用问题请自行百度
利用Mersenne Twister算法产生随机数,并测试和分析了其随机性。 程序中还加入了界面显示。
各个文件为:
initGenerator.m:
initGenerator函数,用于初始化随机序列的长度和值
generateNum.m:
generateNum函数,当index为0时被调用,用于创建624维的移位寄存器数组
extractNum.m:
extractNum函数,根据index当前值选择数组中的数生成随机数,同时改变index的值。
main.m:
main主函数,输入种子seed和产生数目total,输出产生结果及随机性测试结果
mymy.m和mymy.fig:
用于界面显示的部分,这两个文件会通过界面传入seed和total的值,并调用main函数,在相应的框中显示输出结果。-According to the algorithm principle on Wikipedia, the Mersenne Twister algorithm to generate random numbers, and test and analysis of its randomness. The program has also joined the interface display.
The individual files are:
initGenerator.m:
initGenerator function used to initialize the random sequence length and value
generateNum.m:
generateNum function is invoked when the index is zero, and used to create a 624-dimensional shift register array
extractNum.m:
extractNum function, according to index the current value to select the number to generate random numbers, and change the value of the index in the array.
main.m:
main function of the input seed to seed and produce the number of total, the output generated results and the randomness of the test results
mymy.m and mymy.fig:
Part of these two files for interface display interface incoming seed and the total value of, and calls the main function, to display the output in the appropriate boxes.
各个文件为:
initGenerator.m:
initGenerator函数,用于初始化随机序列的长度和值
generateNum.m:
generateNum函数,当index为0时被调用,用于创建624维的移位寄存器数组
extractNum.m:
extractNum函数,根据index当前值选择数组中的数生成随机数,同时改变index的值。
main.m:
main主函数,输入种子seed和产生数目total,输出产生结果及随机性测试结果
mymy.m和mymy.fig:
用于界面显示的部分,这两个文件会通过界面传入seed和total的值,并调用main函数,在相应的框中显示输出结果。-According to the algorithm principle on Wikipedia, the Mersenne Twister algorithm to generate random numbers, and test and analysis of its randomness. The program has also joined the interface display.
The individual files are:
initGenerator.m:
initGenerator function used to initialize the random sequence length and value
generateNum.m:
generateNum function is invoked when the index is zero, and used to create a 624-dimensional shift register array
extractNum.m:
extractNum function, according to index the current value to select the number to generate random numbers, and change the value of the index in the array.
main.m:
main function of the input seed to seed and produce the number of total, the output generated results and the randomness of the test results
mymy.m and mymy.fig:
Part of these two files for interface display interface incoming seed and the total value of, and calls the main function, to display the output in the appropriate boxes.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Mersenne Twister/2009211125_09210682_19_李俊.docx
Mersenne Twister/Mersenne Twister/extractNum.m
Mersenne Twister/Mersenne Twister/generateNum.m
Mersenne Twister/Mersenne Twister/initGenerator.m
Mersenne Twister/Mersenne Twister/main.m
Mersenne Twister/Mersenne Twister/mymy.fig
Mersenne Twister/Mersenne Twister/mymy.m
Mersenne Twister/官网代码/mt19937-2 (1).c
Mersenne Twister/官网代码/mt19937-2.c
Mersenne Twister/Mersenne Twister
Mersenne Twister/官网代码
Mersenne Twister
Mersenne Twister/Mersenne Twister/extractNum.m
Mersenne Twister/Mersenne Twister/generateNum.m
Mersenne Twister/Mersenne Twister/initGenerator.m
Mersenne Twister/Mersenne Twister/main.m
Mersenne Twister/Mersenne Twister/mymy.fig
Mersenne Twister/Mersenne Twister/mymy.m
Mersenne Twister/官网代码/mt19937-2 (1).c
Mersenne Twister/官网代码/mt19937-2.c
Mersenne Twister/Mersenne Twister
Mersenne Twister/官网代码
Mersenne Twister
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.