So the question is to develop a [5][5] table, each containing unique numbers from 1-100 (no duplicates)
so here\'s what I came up with:
#inc
Just create array of boolean of size 100 : bool numberUsed[100]. Then in cycle:
bool numberUsed[100]
1.Generate random number r 2.If numberUsed[r] is true, dont add that r anywhere and continue in loop 3.numberUsed[r] = true
Note that you need to use WHILE cycle with this approach, not FOR cycle.