Searched refs:acm_ (Results 1 – 4 of 4) sorted by relevance
19 random_(false), nrandom_(0), acm_(NULL) { in StringGenerator()30 delete acm_; in ~StringGenerator()68 int len = acm_->Uniform(maxlen_+1); in RandomDigits()71 digits_[i] = acm_->Uniform(alphabet_.size()); in RandomDigits()97 if (acm_ == NULL) in Random()98 acm_ = new ACMRandom(seed); in Random()100 acm_->Reset(seed); in Random()
67 acm_ = &acm; in GenerateRandom()74 acm_ = NULL; in GenerateRandom()141 if (nstk == 1 && acm_->Uniform(maxatoms_ + 1 - atoms) == 0) { in GenerateRandomPostfix()153 if (ops < maxops_ && acm_->Uniform(2) == 0) { in GenerateRandomPostfix()154 const string& fmt = ops_[acm_->Uniform(ops_.size())]; in GenerateRandomPostfix()167 if (atoms < maxatoms_ && acm_->Uniform(2) == 0) { in GenerateRandomPostfix()168 post->push_back(atoms_[acm_->Uniform(atoms_.size())]); in GenerateRandomPostfix()
52 ACMRandom* acm_; // Random number generator variable
55 ACMRandom* acm_; // Random generator. variable