class randNum{
  randNum(){}  // default constructor - does nothing
  int newNum() {     // method that produces an int
     int newVar = 0;
     double slotVar = (Math.random() * 10);
     newVar = (int) slotVar;
     return newVar;
  } // newNum
} // randNum

