Published
Edited
Feb 1, 2021
Insert cell
Insert cell
{
const arr = new Uint8Array(12);
window.crypto.getRandomValues(arr);
new DataView(arr.buffer).setUint32(0, Date.now() & 0xffffffff, false);
return [...arr].map(byte => byte.toString(16).padStart(2, "0")).join("");
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more