It would be helpful it you gave some indication as to where the error occurred.
Without looking at the whole program (and not having any idea what it is supposed to do), the follow loop looks suspicious:
Code:for(int i=0;i<3;i++) {
points[itCount][i]=points[itCount-1][i]+int(random(0,3));
}
The variable i will have values 0, 1, 2... and points[itCount][2] doesn't exist.
All numbered array indices start at 0. An array with 2 elements, eg
Code:int[] myArray = new int[2];
has only elements myArray[0] and myArray[1].
One handy "trick" (not really a trick) is to think of basic for loops as follows:
Code:for(int i = 0; i < numberOfRepetitions; i++)
{
// ...
}
Since in your case, you've used "3" in place of "numberOfRepetitions", which suggests you are processing 3 elements, not 2 (your "x" and "y").
In any case, you might want to reconsider some of your array initialisations in the form of new type[something + 1]. I haven't tried to understand what your code does, I'm just guessing you didn't realise that array indices start at 0 and go up to ONE LESS THAN the number of elements.
If you want 5 integers, new int[5] is what you should be using, not new int[5 + 1], and the elemnts are a[0], a[1], a[2], a[3], a[4] (supposing the array name is "a").
-spxl