Best shuffle: Difference between revisions
Content added Content deleted
m (formatting improvements) |
|||
Line 1: | Line 1: | ||
{{task}}Shuffle the characters of a string in such a way that as many of the characters are in a different position as possible. Print the result as follows: original string, shuffled string, (num characters ignored) |
{{task}}Shuffle the characters of a string in such a way that as many of the characters are in a different position as possible. Print the result as follows: original string, shuffled string, (num characters ignored) |
||
For example: tree, eetr, (0) |
For example: <code>tree, eetr, (0)</code> |
||
⚫ | |||
⚫ | |||
=={{header|D}}== |
=={{header|D}}== |