/* Although we are choosing the pixel size 'randomly', a truly random */
/* selection would bias toward large numbers since there are more of */
/* them. To avoid this, we select a random number for a bit shift, */
/* resulting in a pixel size of 1, 2, 4, 8, 16 or 32, equally likely. */
state->cell_size = 1 << (random() % 6);
} else {
/* Although we are choosing the pixel size 'randomly', a truly random */
/* selection would bias toward large numbers since there are more of */
/* them. To avoid this, we select a random number for a bit shift, */
/* resulting in a pixel size of 1, 2, 4, 8, 16 or 32, equally likely. */
state->cell_size = 1 << (random() % 6);
} else {