Skip to content

Instantly share code, notes, and snippets.

@scruffyfox
Created July 27, 2015 11:13
Show Gist options
  • Save scruffyfox/c286e382b8d35c9b7adc to your computer and use it in GitHub Desktop.
Save scruffyfox/c286e382b8d35c9b7adc to your computer and use it in GitHub Desktop.
Generate random colour with 0xff alpha
int colour = random.nextInt(0xffffff) + (0xff << 24);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment