A bingo card has columns B, I, N, G, O and random numbers in the ranges (1-15, 16-30, 31-45, 46-60, 61- 75) down each column, with a “free” in the centre. Start off by creating the card. Evaluate a card given 20 number calls. Ask the user for whether they want to call “Bingo!” (It is not expected for the game to identify if the player has won.) This is my code pls make it so it is down each column and not row. import java.util.Scanner;
import java.util.Random;

class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
Random rand = new Random();

System.out.println("B\t|\tI\t|\tN\t|\tG\t|\tO\t|");
int[][] card = new int [6][6];
int temp;

for (int i = 1; i < card.length; i++) {
temp = rand.nextInt(15)+1;
card[0][i] = temp;
System.out.print(card[0][i] + " \t");
}
System.out.println();

for (int i1 = 1; i1 < card.length; i1++) {
temp = rand.nextInt(15)+14;
card[1][i1] = temp;
System.out.print(card[1][i1] + " \t");
}
System.out.println();

for (int i2 = 1; i2 < card.length; i2++) {
temp = rand.nextInt(15)+ 28;
card[2][i2] = temp;
System.out.print(card[2][i2] + " \t");
}
System.out.println();

for (int i3 = 1; i3 < card.length; i3++) {
temp = rand.nextInt(15)+42;
card[3][i3] = temp;
System.out.print(card[3][i3] + " \t");
}
System.out.println();

for (int i4 = 1; i4 < card.length; i4++) {
temp = rand.nextInt(15)+56;
card[4][i4] = temp;
System.out.print(card[4][i4] + " \t");
}
System.out.println();
}
}

Solved
Show answers

Ask an AI advisor a question