1 #ifndef SimTK_SimTKCOMMON_RANDOM_H_ 2 #define SimTK_SimTKCOMMON_RANDOM_H_ 63 void setSeed(
int seed);
67 Real getValue()
const;
71 void fillArray(
Real array[],
int length)
const;
81 RandomImpl& getImpl();
85 const RandomImpl& getConstImpl()
const;
118 void setMin(
Real min);
126 void setMax(
Real max);
128 UniformImpl& getImpl();
129 const UniformImpl& getConstImpl()
const;
155 Real getMean()
const;
159 void setMean(
Real mean);
163 Real getStdDev()
const;
167 void setStdDev(
Real stddev);
169 GaussianImpl& getImpl();
170 const GaussianImpl& getConstImpl()
const;
179 #endif // SimTK_SimTKCOMMON_RANDOM_H_ RandomImpl * impl
Definition: Random.h:73
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:224
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37
ELEM min(const VectorBase< ELEM > &v)
Definition: VectorMath.h:178
SimTK_Real Real
This is the default compiled-in floating point type for SimTK, either float or double.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:606
ELEM mean(const VectorBase< ELEM > &v)
Definition: VectorMath.h:324
ELEM max(const VectorBase< ELEM > &v)
Definition: VectorMath.h:251
This class defines the interface for pseudo-random number generators.
Definition: Random.h:54
This is a subclass of Random that generates numbers according to a Gaussian distribution with a speci...
Definition: Random.h:141
Includes internal headers providing declarations for the basic SimTK Core classes.