0

Define a 5 x10 2-dimensional array of integers (5 rows of 10 columns), randomly generate 50 numbers between 1 and 100, assign them to the array elements and display all the numbers on 5 lines of 10 integers each.

```
#include <iostream>
#include <ctime> // For time()
#include <cstdlib> // For srand() and rand()
using namespace std;
int main()
{
const int row=5;
const int column=10;
/*int rnum;*/
double table[row][column];
/*srand(time(0)); // Initialize random number generator.
rnum = (rand() % 50) + 1;
if (rnum>1 && rnum <100)*/
for(int r=0; r<row; r++)
{ for(int c=0; c<column;c++)
{ cout << table[row][column];
}
}
system("pause");
return 0;
}
```

how would i apply the random part of this problem to the code?