> ## 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":"css-variables","dark":"css-variables"}}
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:

<div className="query-window">
  ```
  SELECT GEN_RANDOM_UUID_TEXT() AS id_col;
  ```

  | id\_col <span>text</span>            |
  | :----------------------------------- |
  | e816c961-c73a-4a36-8aaf-40a641106687 |

  <p><span>Rows: 1</span><span>Execution time: 5.27ms</span></p>
</div>
