You know what a string is, right?
The string: "Hello World!" is literally just an array containing 12 letters
So you could even type:
VAR myString="Hello World!"
Typing myString[6] gets the 7th letter, which is "W"
Imagine a long list of boxes
Each box contains one number inside
But all the boxes are hooked together like a train
It's just a way to store a bunch of numbers together, they're extremely extremely useful
If you want 5 items
You initialize it with
DIM myArrayOfNumbers[5]
To set the last item in the array to 3.14, type
myArrayOfNumbers[4]=3.14
You subtract one from your index, the 5th item is 4
Doing those swaps, however, does have rules, and I think the computation may get out of hand
I don't have very much experience with sudoku generation, but I know its one of those gray areas in Computer Science, it has to do with the famous P vs. NP problem.
A really clever approach is to have a single, pre-generated sudoku, shuffle each row, then shuffle each column, then shuffle every 3x3 box
And then mask each number with a shuffled different number (replace all 5s with 9s, ...)
Any its as if you just generated a new one, but its much faster