How would one go about converting a list of integers to a two-dimensional array?
List<int> integerList = new List<int>();
integerList.Add(1);
integerList.Add(2);
...
integerList.Add(250000);
int[,] integerArray = new int[500,500];
//fill integerArray with integerList values here
Target output should be in rows, filling x from 0-499 then incrementing y by 1 and repeat.
integerArray[x,y]
Try this:
If you want to the number to increment through the column first, just transpose the mod and div operations inside the array.