int[] tbl={1,2,3,4,5,6,2,4,6};

int suti=tbl[rand()%tbl.length];

で偶数だけちょっと出やすい
tbl.lengthだかtbl.countだかは忘れた