Ignore:
Timestamp:
Dec 13, 2007 9:55:08 AM (12 years ago)
Author:
forrest
Message:

for threaded random numbers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpSimplexPrimal.cpp

    r1137 r1141  
    774774                setFlagged(sequenceOut_);
    775775              }
    776               double newTolerance = CoinMax(0.5 + 0.499*CoinDrand48(),factorization_->pivotTolerance());
     776              double newTolerance = CoinMax(0.5 + 0.499*randomNumberGenerator_.randomDouble(),factorization_->pivotTolerance());
    777777              factorization_->pivotTolerance(newTolerance);
    778778            } else {
     
    22462246          double value = maximumFraction*(difference+1.0);
    22472247          value = CoinMin(value,0.1);
    2248           value *= CoinDrand48();
     2248          value *= randomNumberGenerator_.randomDouble();
    22492249          if (solutionValue-lowerValue<=primalTolerance_) {
    22502250            lower_[iSequence] -= value;
     
    22882288        double value = perturbation*maximumFraction;
    22892289        value = CoinMin(value,0.1);
    2290         value *= CoinDrand48();
     2290        value *= randomNumberGenerator_.randomDouble();
    22912291        if (savePerturbation!=50) {
    22922292          if (fabs(value)<=primalTolerance_)
     
    23472347      double value = perturbation*maximumFraction;
    23482348      value = CoinMin(value,0.1);
    2349       value *= CoinDrand48();
     2349      value *= randomNumberGenerator_.randomDouble();
    23502350      if (upperValue>lowerValue+tolerance) {
    23512351        if (savePerturbation!=50) {
Note: See TracChangeset for help on using the changeset viewer.