Platform
Resources
Pricing
Sign in
Get started
Mike Bostock
Visualization toolmaker. Founder @observablehq. Creator @d3. Former @nytgraphics. Pronounced BOSS-tock.
Workspace
Fork
Published
By
Mike Bostock
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
n
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
randomHex
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML