public Tuple <int, int> next() { int toReturn = 0; int c = 0; switch (lfsr1.shift()) { case 0: { toReturn = lfsr2.shift(); c = 0; lfsr3.shift(); } break; case 1: { toReturn = lfsr3.shift(); c = 1; lfsr2.shift(); } break; } return(new Tuple <int, int>(toReturn, c)); }
public int next() { int toReturn = 0; switch (lfsr1.shift()) { case 0: { toReturn = lfsr2.shift(); lfsr3.shift(); } break; case 1: { toReturn = lfsr3.shift(); lfsr2.shift(); } break; } return(toReturn); }