- int x = random() % state->grid_width;
- int y = random() % state->grid_height;
- m_cell *cell = &state->cells[state->grid_width * y + x];
+ int yy = random() % state->grid_height;
+ int xx = random() % state->grid_width;
+ m_cell *cell = &state->cells[state->grid_width * yy + xx];