Knuth shuffle: Difference between revisions
Content added Content deleted
(Added Uiua solution) |
|||
Line 5,216: | Line 5,216: | ||
=={{header|Uiua}}== |
=={{header|Uiua}}== |
||
{{works with|Uiua|0.10.0-dev.1}} |
{{works with|Uiua|0.10.0-dev.1}} |
||
Build pairs of indexes to be swapped then apply these as a fold. |
|||
<syntaxhighlight lang="Uiua"> |
<syntaxhighlight lang="Uiua"> |
||
∧(⍜⊏⇌)∵(⊟⌊×⚂.)⇌↘1⇡⧻. ⇡10 |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||