API Reference > Other Classes > OdRandomGenMinstd Template > OdRandomGenMinstd Methods > OdRandomGenMinstd::setSeed Method
OdRandomGenMinstd::setSeed Method
Syntax
C++
virtual void setSeed(OdUInt32 seed);

The future sequence is fully determined by the provided seed.

do NOT pass nondeterministic things like time(), otherwise your results won't be reproducible! In most cases you should NOT call it: every generator has a fixed default value.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.