If I generate an array with the code
- Code: Select all
Set size to (random(4,11), random(4,11),1)
how can I ensure that, regardless of array size, the array is always populated as follows:
with the "1"'s around the edges, and the "0"'s filling the rest ?