Skip to content

Instantly share code, notes, and snippets.

@River2056
Last active September 11, 2020 10:24
Show Gist options
  • Save River2056/6247af06d080122b3c581deab4fc5d20 to your computer and use it in GitHub Desktop.
Save River2056/6247af06d080122b3c581deab4fc5d20 to your computer and use it in GitHub Desktop.
import random
def generate_random_number():
num = [str(i) for i in range(10)]
random.shuffle(num)
return ''.join(num[0:4])
print(generate_random_number())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment