// Test invgray
System.out.println("Testing invgray");
for (i=0;i<N;i++) {
j=myran.int32();
k=g.gray(j);
m=g.invgray(k);
// System.out.printf(j << " %f\n", m);
localflag = localflag || (m != j);
}
globalflag = globalflag || localflag;
if (localflag) {