Created
October 5, 2016 01:39
-
-
Save aqualad/25865a94af817f56662395d94f07247f to your computer and use it in GitHub Desktop.
Generate multiple UUIDs
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
from uuid import uuid4() | |
newline_in = 4 # newline after x rows | |
number_of_uuids = 4 * 16 # how many uuids to generate | |
for i in range(0, number_of_uuids): | |
if i and i % newline_in == 0: | |
print(" ") | |
uuid4() | |
# outputs: | |
# UUID('98219717-24e7-424a-9f02-dbd59c5dd116') | |
# UUID('a383e4bc-01c9-40dc-922f-30b081e4ffdc') | |
# UUID('c7798afb-b762-4924-8f78-3bbb7f225846') | |
# UUID('7083ed8f-5585-419b-b1cf-90cb7517b378') | |
# | |
# UUID('2971bc11-d9f3-4c9c-90de-27f9236926d7')....etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment