API Reference > Other Classes > OdRandomGen Class > OdRandomGen Methods > OdRandomGen::setSeed Method
OdRandomGen::setSeed Method
Syntax
C++
virtual void setSeed(OdUInt32 seed) = 0;

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.