# [Perl 6], 88 bytes

<!-- language-all: lang-perl6 -->

    {(($!={$_=[1..11];:10[map {|.splice($^m,1)},[R,] $^n.polymod(1..10)]})($^n+1)-$!($n))/9}

[Try it online!][TIO-jocqa8y9]

[Perl 6]: https://github.com/nxadm/rakudo-pkg
[TIO-jocqa8y9]: https://tio.run/##NcvRCoIwFMbxVznCITZaa8eVusKX6FZUohQCp0OvxHz2NaNufn8OfMc1Y5d4O8OuhdwvjGGUL1jnBUlJVF4vpAp7d7C85eS616NhWFlBfBXFTZSAVS/d0M12eLLtQ/Fy5WHS74kfMGLYc340q5/uM7QMaw7tMEKsBRAZAenGWengSent0EmcpaGk1Jef/4RqYyhJTeY/ "Perl 6 – Try It Online"

Calculates the elements directly.