Published
Edited
Oct 20, 2021
1 fork
11 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
badShuffle = (array) => {
const copy = [...array];
for (let i = 0; i < copy.length; i++) {
const randomIndex = Math.floor(Math.random() * copy.length);
const temp = copy[randomIndex];
copy[randomIndex] = copy[i];
copy[i] = temp;
}
return copy;
}
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