Suppose we have already generated all the Sobol sequence draws up to "n" − 1 and kept in memory the values "x""n"−1,"j" for all the required dimensions. Since the Gray code "G"("n") differs from that of the preceding one "G"("n" − 1) by just a single, say the "k"-th, bit (which is a rightmost bit of "n" − 1), all that needs to be done is a single XOR operation for each dimension in order to propagate all of the "x""n"−1 to "x""n", i.e.