Generate your noise in RGB mode, then set your image to Indexed mode with the palette size limited to whatever number of colours you want. That will reduce the colour count to that number. Then, you can customise the colours by changing the palette, or by going back to RGB mode and filling in the pixels with arbitrary colours with the Paint Bucket with 0 tolerance and Contiguous turned off.