91 int idx = genInt(1, iArray.
size()) - 1;
108 size_t n = end - beg;
109 for (
size_t i = 0; i < n; i++) {
110 size_t pos = (size_t)
rnd->genUInt64(0, i);
void OdRandomShuffle(T *beg, T *end, OdRandom *rnd)
virtual void getRange(OdUInt32 &high) const =0
virtual OdUInt32 generate()=0
virtual OdUInt32 getSeed() const =0
virtual OdRandomGen * clone()=0
virtual void setSeed(OdUInt32 seed)=0
OdRandomGenMinstd(OdUInt32 seed=1)
virtual void getRange(OdUInt32 &high) const
virtual void setSeed(OdUInt32 seed)
virtual ~OdRandomGenMinstd()
virtual OdRandomGenMinstd * clone()
virtual OdUInt32 generate()
virtual OdUInt32 getSeed() const
double genDouble(double low, double high)
OdUInt32 genUInt(OdUInt32 low, OdUInt32 high)
OdRandomGen & generator()
OdRandom(OdRandomGen *newGenerator=NULL)
OdUInt64 genUInt64(OdUInt64 low, OdUInt64 high)
const T & randomOf(const OdArray< T, A > &iArray)
const OdRandomGen & generator() const
void operator=(const OdRandom &iSrc)
OdInt64 genInt64(OdInt64 low, OdInt64 high)
int genInt(int low, int high)
OdRandom(const OdRandom &iSrc)