Hi deviation,
That was faulty anyways (mix up with C++)...
Should of used and...
if (x == previous and x <= 4) {
x = x-1;
if (x == -1) {
x = random(3);
}
}
I've also changed the rest of the condition, 'cause I was sometimes getting x = 5, which doesn't exist in my array!
;-)
May try to whip up something for you tonight on that other thread, if nobody else comes up with an example.