I am coding a program that is generating binary(black n white) image . The ARGB(Alpha,Red,Green,Blue) for the white color is(0,255,255,255) and (0,0,0,0) for the black color . so I am using Random
number to generate the binary bitmap
int a = rnd.Next(256);
int r = rnd.Next(256);
int g = rnd.Next(256);
int b = rnd.Next(256);
but with this range of numbers it will generate a colors image , so I only need Random numbers that are 0 or 255 , no thing between them . Remember it's a binary not a scale-gray image .