Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create a K-Sortable Unique IDentifier (KSUID), inspired by NoSQL JSON document databases
creates a hexadecimal unique partially sortable ID.
creates a list of n hexadecimal unique partially sortable IDs.
Get one unique sortable ID:
Get a list of unique sortable IDs:
Note that the beginning of the IDs are close to one another because they are based on a Unix timestamp. The second part is a random value:
We can check when these mysterious IDs were created:
Get the first eight digits, convert to decimal and get a DateObject from each Unix timestamp:
By breaking the KSUID apart into two hexadecimal values, we can plot multiple sortable IDs in a graph, and view the random and repetitive parts:
We can view a set of IDs as an image:
This work is licensed under a Creative Commons Attribution 4.0 International License