generate unique integer id in python module code example
Example 1: python generate uid
# Python3 code to generate the
# random id using uuid1()
import uuid
# Printing random id using uuid1()
print ("The random id using uuid1() is : ",end="")
print (uuid.uuid1())
Example 2: genrate unique key in python
import uuid
for i in range(2):
uuidFour = uuid.uuid4()
print("uuid of version four", uuidFour)