J
John Inge =?UTF-8?B?RWxsaW5nc8OmdGVy?=
How do I do this??
I have a table [j] that are filled with random integers on each round of
a loop, but for a certain user input I want to keep column[n] while all
other numbers are changed.
I guess this is quite easy, but I just can't seem to figure it out.
Thanks in advance,
John Inge E
If to any help, this is the code for filling the table with integers:
(some norwegian words in there, sorry about that)
for (int column = 0; column < antRader; column++) {
radNr = radNr+1;
System.out.print("\t L" + radNr + " | ");
for (int row = 0; row < (antRader); row++) {
tabell[column][row] = ((int)(Math.random()*(antRandom)+1));
System.out.print(tabell[column][row]+" - ");
}
}
I have a table [j] that are filled with random integers on each round of
a loop, but for a certain user input I want to keep column[n] while all
other numbers are changed.
I guess this is quite easy, but I just can't seem to figure it out.
Thanks in advance,
John Inge E
If to any help, this is the code for filling the table with integers:
(some norwegian words in there, sorry about that)
for (int column = 0; column < antRader; column++) {
radNr = radNr+1;
System.out.print("\t L" + radNr + " | ");
for (int row = 0; row < (antRader); row++) {
tabell[column][row] = ((int)(Math.random()*(antRandom)+1));
System.out.print(tabell[column][row]+" - ");
}
}