Generates a random GUID (Globally Unique Identifier) in the standard 8-4-4-4-12 hexadecimal format.
Returns string
A randomly generated GUID string.
Remarks
This function uses Math.random() to generate random values, which may not be suitable for cryptographic purposes.
The generated GUID conforms to version 4 UUID format.
Example
constguid = GenerateGuid(); console.log(guid); // Example output: '3f2504e0-4f89-41d3-9a0c-0305e82c3301'
Generates a random GUID (Globally Unique Identifier) in the standard 8-4-4-4-12 hexadecimal format.