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 3ea546a commit 1afa3d2Copy full SHA for 1afa3d2
scripts/app.js
@@ -55,7 +55,7 @@ function saveValue(x1, y1, x2) {
55
}
56
let value = y1 / height;
57
for (; index1 <= index2; index1++) {
58
- arrayToSort[index1] = value;
+ arrayToSort[index1] = Math.min(1,value+Math.random()/500);
59
60
draw()
61
if (sortIndex != null) {
0 commit comments