random.uuid

Generates a random UUID (Universally Unique IDentifier) v4. The same function as the standard crypto.randomUUID.

Note

The result is generated using the cryptographically secure random number generator.

Syntax

uuid()

Return value

A string containing UUID. Uses lowercase letters.

Example

random.uuid()
"4bf11931-0c46-4750-97ff-4ada2ddbe8c9"

See also