1. Add a new method to the random number class of the previous project. The new method generates the next pseudorandom number but does not return the number directly. Instead, the method returns this number divided by the modulus. (You will have to cast the modulus to a double number before carrying out the division; otherwise, the division will be an integer division, throwing away the remainder.)
The return value from this new member function is a pseudorandom double number in the range [0..1). (The square bracket, “[”, indicates that the range does include 0, but the rounded parenthesis, “)”, indicates that the range goes up to 1, without actually including 1.)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here