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 6505 2009-01-12 03:34:23Z ckarney $" |
Functions | |
RCSID_DECL (RANDOMEXAMPLE_CPP) | |
RCSID_DECL (NORMALDISTRIBUTION_HPP) | |
RCSID_DECL (RANDOMSELECT_HPP) | |
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://charles.karney.info/random/
Definition in file RandomExample.cpp.
#define RANDOMEXAMPLE_CPP "$Id: RandomExample.cpp 6505 2009-01-12 03:34:23Z ckarney $" |
Definition at line 21 of file RandomExample.cpp.
RCSID_DECL | ( | RANDOMEXAMPLE_CPP | ) |
RCSID_DECL | ( | NORMALDISTRIBUTION_HPP | ) |
RCSID_DECL | ( | RANDOMSELECT_HPP | ) |
int main | ( | ) |
Definition at line 26 of file RandomExample.cpp.
References RandomLib::RandomCanonical< Generator >::Boolean(), RandomLib::RandomCanonical< Generator >::Fixed(), RandomLib::RandomCanonical< Generator >::FixedS(), RandomLib::RandomCanonical< Generator >::IntegerC(), RandomLib::RandomEngine< Algorithm, Mixer >::Name(), RandomLib::RandomCanonical< Generator >::Prob(), and RandomLib::RandomEngine< Algorithm, Mixer >::SelfTest().