แก้วงเล็บ
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user