Created
November 2, 2023 16:43
-
-
Save Justintime50/9127fbf45b0fd801c1a54fb9b7d24f29 to your computer and use it in GitHub Desktop.
Create a random integer of a specified length`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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