How can I generate a unique ID in Python?

python, random, unique-id

Solution

Perhaps `uuid.uuid4()` might do the job. See uuid for more information.

Problem

I need to generate a unique ID based on a random value.

Original source

Related problems