Hi  could some one be kind enough to tell  me how to get two

Hi
could some one be kind enough to tell me how to get two colors instead of one as below, this a an example I found I managed to change this to one color or random colors. but cant work out how to have two colors only Ie: red and blue.

void confetti_2( uint8_t colorVariation, uint8_t fadeAmount)
{
// random colored speckles that blink in and fade smoothly
fadeToBlackBy( leds, NUM_LEDS, fadeAmount);
int pos = random16(NUM_LEDS);
leds[pos] += CHSV( 240, 200, 200);

or the last line to
leds[pos] += CHSV( gHue + random16(colorVariation), 125, 255);
}

any help much appreciated thanks

Here’s an easy way:

void confetti_2( uint8_t colorVariation, uint8_t fadeAmount)
{
// random colored speckles that blink in and fade smoothly
fadeToBlackBy( leds, NUM_LEDS, fadeAmount);
int pos = random16(NUM_LEDS);
switch(random16(2)) {
case 0: leds[pos] += CRGB::Red; break;
case 1: leds[pos] += CRGB::Blue; break;
}
}

thank you so Much Daniel Garcia, from this I gather I could have any(n) amount of cases by changing the value after 16(n)
thank you once again.