Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 7h3kk1d/9d8618bdc675803b4cf567a0fa249a00 to your computer and use it in GitHub Desktop.
Save 7h3kk1d/9d8618bdc675803b4cf567a0fa249a00 to your computer and use it in GitHub Desktop.
import random
while True:
a = [random.randint(1, 6), random.randint(1, 6), random.randint(1, 6), random.randint(1, 6)]
print(a)
if len(set(a)) == 1:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment