Skip to content

Commit ac53a6a

Browse files
fix: modify rAnDoMcAsE to avoid slight bias towards lowercase letters
1 parent 6023932 commit ac53a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/test/funbox/funbox-functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ const list: Partial<Record<FunboxName, FunboxFunctions>> = {
321321
let randomCaseWord = "";
322322

323323
for (let letter of word) {
324-
if (Math.random() > 0.5) {
324+
if (Math.random() < 0.5) {
325325
randomCaseWord += letter.toUpperCase();
326326
} else {
327327
randomCaseWord += letter.toLowerCase();

0 commit comments

Comments
 (0)