CreateUUID

CreateUUID[]

creates a random, universally unique UUID string.

CreateUUID["base"]

appends a UUID string to the specified base string.

Details

  • CreateUUID[] gives a UUID based on a 128-bit number, formatted as 32 hexadecimal digits grouped in the format 8-4-4-4-12.
  • CreateUUID[] is intended to produce a globally unique string that will statistically never be repeated.
  • CreateUUID[] makes use of detailed local system and session information, as well as absolute time.
  • CreateUUID[] is intended to generate a random distribution of UUIDs.
  • Some Wolfram System features depend on assuming the UUIDs will not collide.

Examples

open allclose all

Basic Examples  (1)

Create a random UUID:

In[1]:=
Click for copyable input
Out[1]=

Include a custom string:

In[2]:=
Click for copyable input
Out[2]=

Properties & Relations  (1)

See Also

$SessionID  $WolframUUID  SeedRandom  AbsoluteTime  Hash

Introduced in 2014
(10.0)