Menu
Scroll for more
This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.
Open source
randomUUID
The randomUUID method produces a 36-characters long string that contains a cryptographically random UUID v4.
Usage
randomUUID()Return Value
A string containing a 36-character cryptographically random UUID v4.
Example
JavaScript
JavaScript
export default function () {
const myUUID = crypto.randomUUID();
console.log(myUUID);
}Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video

Performance testing and observability in Grafana Cloud
Optimize user experiences with Grafana Cloud. Learn real-time insights, performance testing with k6, and continuous validation with Synthetic Monitoring.
Events

User-centered observability: load testing, real user monitoring, and synthetics
Learn how to use load testing, synthetic monitoring, and real user monitoring (RUM) to understand end users' experience of your apps. Watch on demand.