import java.util.*;
import java.lang.*;
import java.io.*;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
//int[][] arr = new int[10][8]
int[][] arr = {
{1, 1, 1, 1, 1, 1, 1, 1},
{1, 2, 2, 2, 2, 2, 2, 2},
{1, 1, 3, 3, 3, 3, 3, 3},
{1, 2, 1, 4, 4, 4, 4, 4},
{1, 1, 2, 1, 5, 5, 5, 5},
{1, 2, 3, 2, 1, 6, 6, 6},
{1, 1, 1, 3, 2, 1, 7, 7},
{1, 2, 2, 4, 3, 2, 1, 8},
{1, 1, 3, 1, 4, 3, 2, 1},
{1, 2, 1, 2, 5, 4, 3, 2},
};
int household = 1 + (int)(Math.random() * ((10 - 1) + 1));
int eligibles = 1 + (int)(Math.random() * ((8 - 1) + 1));
System.out.println(household+"-"+eligibles);
System.out.println(arr[household-1][eligibles-1]);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: