for (int x=1; x < maxTurns; x++) {
randomArray[x] = random(1, 5);
//Serial.println(randomArray[x]);
}
Since you seem to be storing a number from 1 to 4 then a byte array should be plenty. That would take you up to 255.
for (int x=1; x < maxTurns; x++) {
randomArray[x] = random(1, 5);
//Serial.println(randomArray[x]);
}
Since you seem to be storing a number from 1 to 4 then a byte array should be plenty. That would take you up to 255.