class mypixels;
typedef enum {R, B, G, D} colors;
rand colors c;
rand int pixels[7][7];
constraint valid_colors { foreach(pixels[i,j]) pixels[i][j] inside {R,G,B,D}; }
endclass
this code will return numbers 0,1,2 and 3. I want each [i][j] to be filled with R,B,G and D and actually use my enum.
Thanks
Kimiya