| Overview | Group | Tree | Graph | Index | Concepts | 

Objects of this class produce streams of pseudo-random numbers. You can use objects of this class to create a search with a random element. This class will produce the same stream of random numbers in recompute mode as when it was in compute mode.
For more information, see the member function
 IloSolver::isInRecomputeMode.  
For more information, see IloRandom.
See Also:
| Constructor Summary | |
|---|---|
public  | IlcRandom() | 
public  | IlcRandom(IlcRandomI * impl) | 
public  | IlcRandom(IloSolver m, IlcInt seed=0) | 
| Method Summary | |
|---|---|
public void | copy(IloRandom rnd) | 
public void | copy(IlcRandom rnd) | 
public void | copyTo(IloRandom rnd) | 
public IlcFloat | getFloat() const | 
public IlcRandomI * | getImpl() const | 
public IlcInt | getInt(IlcInt n) const | 
public const char * | getName() const | 
public IlcAny | getObject() const | 
public IloSolver | getSolver() const | 
public IloSolverI * | getSolverI() const | 
public void | operator=(const IlcRandom & h) | 
public void | reSeed(IlcInt seed) | 
public void | setName(const char * name) const | 
public void | setObject(IlcAny object) const | 
| Constructor Detail | 
|---|
 This constructor creates a random number generator, initially
     seeded with the seed seed.
| Method Detail | 
|---|
This member function copies the state of a Concert Technology random number generator to the invoking one. After the copy, both generators will produce the same stream of pseudo-random numbers.
This member function copies the state of another random number generator to the invoking one. After the copy, both generators will produce the same stream of pseudo-random numbers.
This member function copies the state of the invoking generator to a Concert Technology random number generator. After the copy, both generators will produce the same stream of pseudo-random numbers.
 This member function returns a floating point number drawn
     uniformly from the range [0..1).
 This member function returns a integer number drawn
     uniformly from the range [0..n).
This member function returns an instance of IloSolver associated with the invoking object.
This member function returns a pointer to the implementation object of the solver where the invoking object was extracted.
 This member function reseeds the generator with
     seed seed.