Platform
Solutions
Resources
Pricing
Sign in
Sign up
Fabian Iwand
Web developer and autodidact with an interest in creative coding.
Workspace
Fork
Public
By
Fabian Iwand
Edited
Jan 28
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data
=
d3
.
range
(
seedOffset
,
seedOffset
+
seeds
)
.
map
(
seed
=>
(
{
seed
,
rng
:
d3
.
randomLcg
(
seed
)
}
)
)
.
flatMap
(
(
{
seed
,
rng
}
)
=>
(
Array
.
from
(
{
length
:
callOffset
}
,
rng
)
,
// discarded values
d3
.
range
(
calls
)
.
map
(
n
=>
(
{
seed
,
n
,
v
:
rng
(
)
}
)
)
)
)
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
seeds
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
seedOffset
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
calls
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
callOffset
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML