No results for

Powered byAlgolia
⚠️ This is archived documentation for v0.33. Go to the latest version

Function returns a random uuid v4 in a string form.

Returns

TypeDescription
stringRandom UUID v4 string

Example

import { uuidv4 } from "https://jslib.k6.io/k6-utils/1.1.0/index.js";
export default function() {
let randomUUID = uuidv4();
console.log(randomUUID); // 35acae14-f7cb-468a-9866-1fc45713149a
}