Function to generate n samples of pink noise