Published
Edited
Oct 14, 2019
Insert cell
Insert cell
Math.random()
Insert cell
Insert cell
Math.random() * 100
Insert cell
Math.random() * 1000
Insert cell
Insert cell
Math.floor(Math.random() * 100)
Insert cell
Math.floor(Math.random() * 10000)
Insert cell
Insert cell
randomNumber = (min, max) => {
return Math.floor((max - min + 1) * Math.random() + min)
}
Insert cell
randomNumber(5,19)
Insert cell
randomNumber(100,1e4)
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