Generate UUIDs
generate_uuidGenerate cryptographically secure UUIDs. Choose version 4 for random IDs or version 7 for time-ordered IDs that sort chronologically, ideal for database primary keys.
Instructions
Generates one or more UUIDs using a cryptographically secure random source. Version 4 is fully random; version 7 (RFC 9562) embeds a millisecond timestamp so the values sort chronologically, which makes them well suited to database primary keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many to generate (1-256). | |
| version | No | 4 for random UUIDs, 7 for time-ordered UUIDs that sort chronologically. |