The RGB colors are randomly generated, but in order to achieve the color white, the values of all three RGB components must be very similar.
An analogy to this process is rolling three dice with 256 faces and having all three land on similar values. This is a highly unlikely event, akin to winning at cosmic roulette.