Consider sampling a string of $N$ binary digits (in $\{0,1\}$), having exactly $N/2$ occurrences of each digit.
This can be also thought of as randomly permuting the string $\underbrace{000\dots0}_{N/2\text{ times}}\underbrace{111\dots1}_{N/2\text{ times}}$.
Define $X$ as the number of "switches" between $0$ and $1$ in such a random string of length $N$.
For instance, when $N=6$ then in $000111$ we have only one switch ($X=1$), and in $010101$ we have $5$ such switches ($X=5$).
I am interested in the distribution (or at least the expectation) of the number of switches $X$.
I couldn't think of a suitable reduction to a more traditional problem/distribution.