Added conversion operator/constructor to random number class