แก้วงเล็บ

This commit is contained in:
Pitchaya Boonsarngsuk
2018-03-22 15:48:30 +00:00
parent d31951fa85
commit f316d2755a
3 changed files with 6 additions and 6 deletions

View File

@@ -126,10 +126,10 @@ export default function () {
break;
}
let rand = Math.floor((Math.random() * max));
let rand = Math.floor(Math.random() * max);
// Re-random until suitable value is found.
while (randElements.includes(rand) || exclude.includes(rand)) {
rand = Math.floor((Math.random() * max));
rand = Math.floor(Math.random() * max);
}
randElements.push(rand);
}