7 lines
131 B
Python

import uuid
def generate_uuid() -> str:
"""Generate a random UUID and return it as a string."""
return str(uuid.uuid4())