biwpy kdpbyslqptyv (gibberish ?????)

This commit is contained in:
Jack 2020-08-10 03:00:02 +01:00
parent 51c8ad6932
commit 989da6c936
3 changed files with 16 additions and 0 deletions

View file

@ -38,5 +38,9 @@
{
"name": "space_balls",
"type": "style"
},
{
"name": "gibberish",
"type": "script"
}
]

View file

@ -260,3 +260,12 @@ function findLineByLeastSquares(values_y) {
function calculateSlope([[x1, y1], [x2, y2]]) {
return (y1 - y2) / (x1 - x2);
}
function getGibberish() {
let randLen = Math.floor(Math.random() * 7) + 1;
let ret = "";
for (let i = 0; i < randLen; i++) {
ret += String.fromCharCode(97 + Math.floor(Math.random() * 26));
}
return ret;
}

View file

@ -382,6 +382,9 @@ function initWords() {
}
}
wordsList.push(randomcaseword);
} else if (activeFunBox === "gibberish") {
setPunctuation(false);
wordsList.push(getGibberish());
} else {
wordsList.push(randomWord);
}