1 //static const char* sccsid = "@(#)math_IntegerRandom.cxx 3.2 95/01/10"; // Do not delete this line. Used by sccs.
2 #include <math_IntegerRandom.ixx>
4 #include <math_Recipes.hxx>
6 math_IntegerRandom::math_IntegerRandom(const Standard_Integer Lower,
7 const Standard_Integer Upper) {
15 void math_IntegerRandom::Reset() {
21 Standard_Integer math_IntegerRandom::Next() {
23 Standard_Real value=Random2(Dummy);
24 Standard_Integer Result=(Standard_Integer)(Standard_Real((Up-Low))*value + Low);