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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more