Skip to content

Conversation

@Dushyant91
Copy link

Math.floor(Math.random * 4)

it is because length of the array is 4 and by taking 3 we will miss one colour tile every time and will never be the randomly selected tile.

Math.floor(Math.random * 4) 

it is because length of the  array is 4 and by taking 3 we will miss one colour tile every time and will never be the randomly selected tile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant