---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Crypto.randomUUID()

The **`randomUUID()`** method is used to generate a v4 [UUID](https://developer.mozilla.org/en-US/docs/Glossary/UUID) using a cryptographically secure random number generator.

## Syntax

```js
randomUUID()
```

### Parameters

None.

### Return value

A string containing a randomly generated, 36 character long v4 UUID.