Knuth shuffle: Difference between revisions
Content added Content deleted
m (added whitespace before the TOC (table of contents).) |
|||
Line 1: | Line 1: | ||
{{task|Classic CS problems and programs}} |
{{task|Classic CS problems and programs}} |
||
Implement the [[wp:Knuth shuffle|Knuth shuffle]] (a.k.a. the Fisher-Yates shuffle) for an integer array (or, if possible, an array of any type). |
Implement the [[wp:Knuth shuffle|Knuth shuffle]] (a.k.a. the Fisher-Yates shuffle) for an integer array (or, if possible, an array of any type). |
||
The Knuth shuffle is used to create a random permutation of an array. |
The Knuth shuffle is used to create a random permutation of an array. |
||
<br.<br> |
|||
=={{header|360 Assembly}}== |
=={{header|360 Assembly}}== |