Closed arunkarnann closed 3 years ago
Yes because, in his class of the Wheel, you can choose between your choice and a random choice this.winner = {this.winner ? this.winner : radom(winner) } so when you set winner to 0 it means equal to false as : {false ? this.winner : radom(winner) } => radom(winner)
winner={0} showing random winners, means delaring first element of the array always returns random results