Uniform sampling in a structured branching population