API Reference > Other Classes > OdRandom Class > OdRandom Constructor > OdRandom::OdRandom Constructor (OdRandomGen *)
OdRandom::OdRandom Constructor (OdRandomGen *)
Syntax
C++
explicit OdRandom(OdRandomGen * newGenerator = NULL);

If you pass custom random generator, then OdRandom receives ownership over it. Otherwise, a default OdRandomGenMinstd generator will be created.

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