random uuid python3 code example Example 1: python random uuid import uuid; uuid.uuid4() Example 2: python random uuid import uuid; uuid.uuid1()