Adding random numbers questions
This is the first time I'm learning java and I've an assignment to generate two random numbers and to ask the user to add these two numbers. After that, use a try/catch to assure the user inputs a number.
How do I go about doing it? I'm really confused with the Math.random and Random.
Re: Adding random numbers questions
Have you read the API documentation for the Math.random() method and the Random class? All the details are explained there.