Generate pseudo Gaussian random numbers for pwm pins

This code sequence seems to work ok for now.

#include <Gaussian.h>

#define TESTS 600

int sequence[TESTS];
int led=11;
void setup() {
  Serial.begin(9600);
  pinMode(led, OUTPUT);
}


void loop() {
  Gaussian myGaussian(50, 16);
  for (int i = 0; i < (TESTS-1); i++){
    sequence[i]=myGaussian.random(); 
  }

  for (int i = 0; i < (TESTS-1); i++){
    analogWrite(led,sequence[i]);
    delay(25);
   
  }

  
  for (int i = 0; i < (TESTS-1); i++){
    Serial.println(sequence[i]);
   
  }

  while(1);

  
  
}

But I would like to increase the array size more. But there seem to be memory issues. I guess I could not use an array and genertae it on the fly to avoid the memory issue.

YES. On a small arduino like the UNO, your array int sequence[TESTS]; is already taking 1200 bytes out of the 2048 bytes available... quite a toll.