If this table is to be larger than 10 by 10, then its size must first be declared with the DIM command, e.g .:
DIM array (100,200) Otherwise, referencing an object in a larger array generates an error.
We draw the numbers with the RND function, multiplying it by the maximum value we want to be randomized. The result will be a fractional number between zero and this value. e.g. x = RND * 100
If we only want integers, add% to the end of the variable name or earlier declare that variables starting with a letter would be an integer with the DEFINT b, t-z command
In the example above, all variables starting with b or with letters from t to z will be integers unless we add them! for fractions or $ for text variables.
So: the array (x, y) = RND * 200 is put into a double FOR NEXT loop with the variables x and y as parameters that grow in them and we already have the numbers drawn in the array. And this is the same in every Basic.
To display them in even columns, it is enough to add a comma after the name of the variable / array in PRINT, and to change the width of spaces, use the ZONE command with the number of characters. (the default is 8).
The MODE 2 command will increase the number of characters available per line to 80.
You can also complicate this display with the LOCATE command to move the cursor to the desired place used before PRINT. How someone likes to use more unnecessary variables. Although I think that by appropriately selecting the size of the randomly selected numbers and their number in relation to the available characters on the screen, the comma in PRINT and ZONE will suffice.
Oh, to make the numbers align to the right margin and not the left one in these columns, let's use:
PRINT USING "