import
java.io.*;
import
java.util.Random;
class
GeneratingRandomMatrix
{
static
int
RUN =
5
;
static
int
lowerBound =
0
;
static
int
upperBound =
1000
;
static
int
maxColumn =
10
;
static
int
minColumn =
1
;
static
int
minRow =
1
;
static
int
maxRow =
10
;
public
static
void
main (String[] args)
throws
IOException
{
Random random =
new
Random();
for
(
int
i =
0
; i < RUN; i++)
{
int
row = random.nextInt(maxRow - minRow) +
minRow;
int
column = random.nextInt(maxColumn - minColumn) +
minColumn;
int
[][] matrix =
new
int
[row][column];
System.out.println(row +
" "
+ column);
for
(
int
j =
0
; j < row; j++)
{
for
(
int
k =
0
; k < column; k++)
{
int
a = random.nextInt(upperBound - lowerBound) +
lowerBound;
System.out.print(a +
" "
);
}
System.out.println();
}
System.out.println();
}
}
}