Published
Edited
Sep 11, 2021
Importers
2 stars
Insert cell
Insert cell
Insert cell
{
while (true) {
yield randomHex(n);
await Promises.delay(5000);
}
}
Insert cell
function randomHex(n) {
return Array.from(
crypto.getRandomValues(new Uint8Array(n)),
b => b.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