> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

> Reference material for GEN_RANDOM_UUID_TEXT function

# GEN_RANDOM_UUID_TEXT

Returns a version 4 universally unique identifier (UUID) as defined by [RFC-4122](https://tools.ietf.org/html/rfc4122#section-4.4) as a `TEXT` value. This function accepts no arguments.

## Syntax

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
GEN_RANDOM_UUID_TEXT()
```

## Return Type

`GEN_RANDOM_UUID_TEXT` returns a result of type  `TEXT`.

## Example

The following code example generates a random UUID as a `TEXT` value:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT gen_random_uuid_text() as id_col
```

| id\_col (TEXT)                         |
| :------------------------------------- |
| 'acc612ea-1a7d-4a49-b977-2486c7963d84' |
