Prevent Red Color in Random Color Generator

skea

Newcomer
Joined
Nov 25, 2009
Messages
22
Hi there, i have this function that creates for me random colors.
I would like it to skip the red color because i use it for something else.
Any one knows how?
Code:
 private int MakeRandomColor()
        {
            Random rand = new Random(DateTime.Now.Millisecond);
            return Convert.ToInt32(ColorTranslator.ToOle(Color.FromArgb(rand.Next(256), rand.Next(256), rand.Next(256))));
        }
 
Back
Top