There seems to be a problem with the code in Chapter 3 in this section where the code example is given for performing pseudo-random traversal.
The values x and y are found using:
but it appears that p ranges from 0 to w * h, so this doesn't make sense for calculating y.
I believe instead it should be something like:
The values x and y are found using:
but it appears that p ranges from 0 to w * h, so this doesn't make sense for calculating y.
I believe instead it should be something like: