Public
Edited
Oct 24, 2023
5 stars
Insert cell
Insert cell
Insert cell
Insert cell
{
const seed = 0.25160386911120525; // a number in [0,1)
const source = d3.randomLcg(seed);
const random = d3.randomNormal.source(source)(0, 1);
return Array.from({length: 8}, random);
}
Insert cell
Insert cell
alea = require("seedrandom@3/lib/alea.min.js")
Insert cell
{
const source = alea(seed);
const random = d3.randomNormal.source(source)(0, 1);
return Array.from({length: 8}, random);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
randomCrypto = () => crypto.getRandomValues(new Uint32Array(1))[0] / 4294967295
Insert cell
Array.from({length: 8}, d3.randomNormal.source(randomCrypto)(0, 1))
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