How the arrangement is made
The tool lays out a grid of desks from your rows, columns and layout, then shuffles the roster and deals names into desks in order. The shuffle is the standard Fisher-Yates method, driven by a seeded random number generator, so each seed gives one repeatable arrangement. With no keep-apart pairs, the first shuffle is used. With pairs, the tool checks the result and, if two kept-apart students share a desk edge, tries again with the next seed, up to 2,000 attempts.
- Rows: every cell of the grid is a desk. Capacity is rows times columns.
- Pairs: every grid cell is a desk, with a visible gap between each pair of columns. Desks across a gap do not count as adjacent for Keep apart.
- Groups of 4: gaps after every second column and row make 2 by 2 clusters. With odd numbers of rows or columns, the last cluster is smaller.
- Horseshoe: desks only in the first row and the first and last columns. Capacity is the columns plus twice the remaining rows.
If you ask for the impossible, for example keeping four students apart in a two-desk layout, the tool says so after exhausting its attempts instead of producing a chart that ignores your rule.