Example of use of RandomSeed, MT19937, Random, etc. More...
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include "RandomLib/Random.hpp"
#include "RandomLib/NormalDistribution.hpp"
#include "RandomLib/RandomSelect.hpp"
Go to the source code of this file.
Defines | |
#define | RANDOMEXAMPLE_CPP "$Id: RandomExample.cpp 6723 2010-01-11 14:20:10Z ckarney $" |
Functions | |
int | main () |
Example of use of RandomSeed, MT19937, Random, etc.
Compile/link with, e.g.,
g++ -I.. -O2 -funroll-loops -o RandomExample RandomExample.cpp Random.cpp
./RandomExample
Written by Charles Karney <charles@karney.com> and licensed under the LGPL. For more information, see http://randomlib.sourceforge.net/
Definition in file RandomExample.cpp.
#define RANDOMEXAMPLE_CPP "$Id: RandomExample.cpp 6723 2010-01-11 14:20:10Z ckarney $" |
Definition at line 20 of file RandomExample.cpp.
int main | ( | ) |
Definition at line 25 of file RandomExample.cpp.
References RandomLib::RandomCanonical::FixedS(), RandomLib::RandomCanonical::Boolean(), RandomLib::RandomCanonical::IntegerC(), RandomLib::RandomCanonical::Prob(), RandomLib::RandomCanonical::Fixed(), RandomLib::RandomEngine::SelfTest(), and RandomLib::RandomEngine::Name().