RandNum Program with OOP concept