Skip to content

Commit 13719f8

Browse files
authored
Update solution.md
1 parent b202d61 commit 13719f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 1-js/05-data-types/05-array-methods/9-shuffle

1-js/05-data-types/05-array-methods/9-shuffle/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ shuffle(arr);
1212
alert(arr);
1313
```
1414

15-
That somewhat works, because `Math.random()-0.5` is a random number that may be positive or negative, so the sorting function reorders elements randomly.
15+
That somewhat works, because `Math.random() - 0.5` is a random number that may be positive or negative, so the sorting function reorders elements randomly.
1616

1717
But because the sorting function is not meant to be used this way, not all permutations have the same probability.
1818

0 commit comments

Comments
 (0)