Sorry for the misleading question guys, I know how to generate two random numbers but I want to use them in One JOptionPane input Dialogbox so the user can add the two numbers. Below is my code of what I have done so far I know it's not a lot but I am genuinely stumped on what to do next :-/
Any help is much appreciated! :)
import javax.swing.*;
public class Practical13 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String input = null;
double ipt;
ipt = Double.parseDouble(input);
ipt = Math.floor((Math.random() * 10) + 1);
ipt = Math.floor((Math.random() * 10) + 1);
input = JOptionPane.showInputDialog("what is " + ipt );
}