We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7794670 commit 2164cfaCopy full SHA for 2164cfa
generate-stats.js
@@ -86,11 +86,11 @@ function generateTemplate(data) {
86
});
87
}
88
89
- function shuffle(array) {
90
- for (let i = array.length - 1; i > 0; i--) {
+ function shuffle(arr) {
+ for (let i = arr.length - 1; i > 0; i--) {
91
let j = Math.floor(Math.random() * (i + 1));
92
93
- [array[i], array[j]] = [array[j], array[i]];
+ [arr[i], arr[j]] = [arr[j], arr[i]];
94
95
96
@@ -110,7 +110,7 @@ function generateTemplate(data) {
110
rowsString += '<div class="user-row">';
111
112
for (var i = 0; i < r; i++) {
113
- rowsString += userTemplate(contributors.shift());
+ rowsString += userTemplate(filtered.shift());
114
115
116
rowsString += '</div>';
0 commit comments