Random subset of integers within the transformed parameters block

Thank you. It does seem a bit restrictive.
One potential workaround might involve utilizing the MCMC iteration or step number, although I haven’t come across a straightforward method for achieving this yet (Is it possible to access the iteration/step number inside a Stan program? - #23 by Louis).