Public
Edited
Dec 27, 2022
3 forks
Importers
7 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
async function randomImage(sizeOrWidth = null, height = sizeOrWidth) {
const size = sizeOrWidth ? `/${+sizeOrWidth}x${+height}` : "";
return (
await fetch(`https://source.unsplash.com/random${size}`, {
method: "head",
cache: "no-store"
})
).url;
}
Insert cell
randomImage()
Insert cell
Insert cell
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