Tue May 9 02:07:00 UTC 2023 inscode

上级 b3889550
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
}, },
shuffleDeck() { shuffleDeck() {
for (let i = this.deck.length - 1; i > 0; i--) { for (let i = this.deck.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i 1)) const j = Math.floor(Math.random() * (i + 1))
const temp = this.deck[i] const temp = this.deck[i]
this.deck[i] = this.deck[j] this.deck[i] = this.deck[j]
this.deck[j] = temp this.deck[j] = temp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册