Skip to content

Instantly share code, notes, and snippets.

@Srushtika
Created June 9, 2020 20:45
Show Gist options
  • Save Srushtika/fb9ae875cc5d323403858e438c7fcb02 to your computer and use it in GitHub Desktop.
Save Srushtika/fb9ae875cc5d323403858e438c7fcb02 to your computer and use it in GitHub Desktop.
Code snippet 22 - For multiplayer space invaders article
function randomAvatarSelector() {
return Math.floor(Math.random() * 3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment