Let $L\subset \Sigma^*$ be a context-free language. The $n$-slice is the intersection $L\cap \Sigma^n$ for a non-negative integer $n$.
Is there a polynomial-time algorithm for uniformly sampling from the $n$-slice of a context-free language?
A quasipolynomial time algorithm is presented in "A Quasi-Polynomial-Time Algorithm for Sampling Words from a Context-Free Language".