Jafar
|
vector of Random Inetegers More...
vector of Random Inetegers
Random generation of vector of integers
used to get a vector of random interger whithin the range [min,max] of size nSize unSeed can be used (recommended) to variate the seed of the random algorithm
Definition at line 65 of file randomIntTmplt.hpp.
Public Member Functions | |
RandomIntVectTmplt (std::size_t nSize, IntType nMin=0, IntType nMax=9, uint64_t unSeed=1) | |
std::vector< IntType > & | get () |
get a vector of random intergers | |
std::vector< IntType > & | getDifferent () |
get a vector of random Different integers | |
void | SetSeed (uint64_t unSeed) |
change the seed | |
Private Attributes | |
boost::rand48 | r_n_gen |
boost::uniform_int | unif_dist |
Random Number Generator. | |
boost::variate_generator < boost::rand48 &, boost::uniform_int<> > | v_g |
uniform distribution type | |
std::vector< IntType > | u_ |
std::vector< IntType > & jafar::jmath::RandomIntVectTmplt< IntType >::get | ( | ) |
get a vector of random intergers
this function return in each call a different vector of integers randomly selected from the rang [min,max]
Definition at line 147 of file randomIntTmplt.hpp.
std::vector< IntType > & jafar::jmath::RandomIntVectTmplt< IntType >::getDifferent | ( | ) |
get a vector of random Different integers
this function return in each call a different vector of Different integers randomly selected from the rang [min,max]
Definition at line 156 of file randomIntTmplt.hpp.
boost::variate_generator<boost::rand48&, boost::uniform_int<> > jafar::jmath::RandomIntVectTmplt< IntType >::v_g [private] |
Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1 |