Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void Impala::Util::DumpRandomSequence ( int  seed,
int  length,
int  maxint 
)

Definition at line 95 of file Random.h.

References RandomInt(), and SetRandomSeed().

00096 {
00097     std::ofstream ofs("randomdump.txt");
00098     if(!ofs.is_open())
00099         return;
00100     ofs << length <<" random numbers below "<< maxint << ", seed == "<< seed <<"\n";
00101     Util::SetRandomSeed(seed);
00102     for(int i=0 ; i<length ; ++i)
00103         ofs << Util::RandomInt(maxint) << ((i%20==19)?"\n":" ");
00104 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:39:15 2010 for ImpalaSrc by  doxygen 1.5.1