sample arbitrary roots