Anonymous user
Best shuffle: Difference between revisions
→Version with random result
m (→{{header|REXX}}: added whitespace, allowed input from command line, split up multiple lines, added/changed comments, undented subroutine fences. -- ~~~~) |
|||
Line 1,057:
auto bestShuffle(S)(in S orig) if (isSomeString!S) {
▲ auto s = o.dup;
randomShuffle(s);
foreach (i, ref ci; s) {
|