⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 it is used to generate random number to simulate the conmmunication scheme, very useful
💻
字号:
README for Mersenne Twister distributionRichard J. Wagner  v1.0  15 May 2003Instructions------------The only necessary file for using this Mersenne Twister random numbergenerator is "MersenneTwister.h".  The class name is MTRand.Usage examples are in "example.cpp".  Linux or Unix users can type "make"to compile and then type "./example" to run the example program.To test the output and compare to other random number generators type"make test".When you are done with testing, type "make clean" to get rid of temporaryfiles.For Windows or Mac users with a compiler such as Metrowerks CodeWarrior orMicrosoft Visual C++, simply add "example.cpp" to an empty C++ consoleapplication.  Compile and run to see the generator in action.  The "make"command will not work, so the test programs must be run manually if desired.The output should contain no error messages and the lists of random numbersshould exactly match those in "mt19937ar.out".If you encounter any problems, please e-mail a copy of the output and adescription of the test system to me at "rjwagner@writeme.com".  Any otherfeedback is welcome too.Installation------------Just copy the file "MersenneTwister.h" to your working directory or some otherplace where your compiler can find it.  Put the following line at the top ofyour program to access the MTRand class:#include "MersenneTwister.h"Contents--------README            - this fileMersenneTwister.h - declaration and implementation of MTRand classexample.cpp       - examples of using MTRandMakefile          - instructions used by "make" commandtestWagner.cpp    - tests MersenneTwister.htestOrigAr.c      - tests Matsumoto and Nishimura's revised MT programtestCokus.c       - tests Cokus's optimized MT programtestHinsch.cpp    - tests Hinsch's MT classtestStd.c         - tests standard rand() functiontestResults.sh    - shell script to interpret the output from testsmtrand.h          - declaration of Hinsch's MT classmtrand.cc         - implementation of Hinsch's MT classmt19937ar.c       - Matsumoto and Nishimura's (inventors) revised MT programmt19937ar-cok.c   - Cokus's optimized MT programmt19937ar.out     - standard reference for Mersenne Twister outputMersenneTwister.html - Web page about MersenneTwister.hAntBlueMaize.jpg     - background for MersenneTwister.htmlArrowHome.gif        - home icon for MersenneTwister.htmlmain.css             - style sheet for MersenneTwister.html

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -