// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _math_IntegerRandom_HeaderFile #define _math_IntegerRandom_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif //! This class implements an integer random number generator.
class math_IntegerRandom { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! creates a Integer random generator between the values Lower and Upper.
Standard_EXPORT math_IntegerRandom(const Standard_Integer Lower,const Standard_Integer Upper); //! reinitializes the random generator
Standard_EXPORT void Reset() ; //! returns the next random number.
Standard_EXPORT Standard_Integer Next() ; protected: private: Standard_Integer Low; Standard_Integer Up; Standard_Integer Dummy; }; // other Inline functions and methods (like "C++: function call" methods) #endif