Skip to content

Instantly share code, notes, and snippets.

@Justintime50
Created November 2, 2023 16:43
Show Gist options
  • Save Justintime50/9127fbf45b0fd801c1a54fb9b7d24f29 to your computer and use it in GitHub Desktop.
Save Justintime50/9127fbf45b0fd801c1a54fb9b7d24f29 to your computer and use it in GitHub Desktop.
Create a random integer of a specified length`
import random
n = 36
random.randint(pow(10, n - 1), pow(10, n) - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment