This page is not a part of an official Int4 documentation.
Int4 Scripts repository

UUID_V4

Created universally unique identifier that is generated using random numbers.

UUID_V4

#Int4 KB sample — AS IS, not official docs, no support. Test before use.  
DEFUN("HEXN", ("n"),
    IF(n <= 0, "", SUBSTR("0123456789abcdef", FLOOR(RANDOM(0, 16)), 1) & HEXN(n - 1)));

DEFUN("VARIANT", ("_"),
    SUBSTR("89ab", FLOOR(RANDOM(0, 4)), 1));

DEFUN("UUID_V4", ("_"), "{HEXN(8)}-{HEXN(4)}-4{HEXN(3)}-{VARIANT("_")}{HEXN(3)}-{HEXN(12)}");
#=============================================================================
#  SUPPLEMENTARY SAMPLE — NOT OFFICIAL DOCUMENTATION
#=============================================================================
#  Provided AS IS to active customers via the Int4 Knowledge Base.
#  No warranty, no SLA, no support coverage. Test in a non-production
#  environment before use. You are responsible for any consequences of
#  running or modifying this code.
#=============================================================================