How to generate randomly colors that is easily recognizable from each other?
<p>I want to generate random colors for a graphic chart but what I tried is not recognizable and generated color are similar to each other generally. Is it possible to create such colors?</p>

<p>My method:</p>

<pre><code>    public Color[] GenerateColors(int n)
    {
        Color[] colors = new Color[n];
        for (int i = 0; i &lt; n; i++)
        {
            int R = rnd.Next(0, 250);
            int G = rnd.Next(0, 250);
            int B = rnd.Next(0, 250);

            Color color = Color.FromArgb(R, G, B);
            colors[i] = color;
        }
        return colors;
    }
</code></pre>