I am trying to start off with a empty array and then generate a random number patten using the following code but I seem to not be able to get it to work.
int sequence = {};
random(1, 4);
for (int i=0; i <= 7; i++){
sequence[i] = random(1, 4);
}
Arduino is based on C++.