From 13719f808b72ead646744f3c2ec162675ee41d78 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 15 Oct 2017 23:56:35 +0300 Subject: [PATCH] Update solution.md --- 1-js/05-data-types/05-array-methods/9-shuffle/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/05-array-methods/9-shuffle/solution.md b/1-js/05-data-types/05-array-methods/9-shuffle/solution.md index f52c9ec8..a43715db 100644 --- a/1-js/05-data-types/05-array-methods/9-shuffle/solution.md +++ b/1-js/05-data-types/05-array-methods/9-shuffle/solution.md @@ -12,7 +12,7 @@ shuffle(arr); alert(arr); ``` -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. +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. But because the sorting function is not meant to be used this way, not all permutations have the same probability.