Generate reasonably unique ids in javascript

published Oct 05, 2012 10:50   by admin ( last modified Oct 05, 2012 10:50 )

 

Returns a random v4 UUID of the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, where each x is replaced with a random hexadecimal digit from 0 to f, and y is replaced with a random hexadecimal digit from 8 to b.



Read more: generate random UUIDs — Gist