Platform
Resources
Pricing
Sign in
Get started
Jackson Feiock
Workspace
Fork
Published
Notes
By
Jackson Feiock
Edited
Sep 6, 2020
Insert cell
md
`# Array of Random Numbers`
Insert cell
data
=
{
const
data
=
[
]
for
(
let
i
=
0
;
i
<
100
;
i
=
i
+
1
)
{
data
.
push
(
Math
.
random
(
)
*
10
)
}
return
data
}
Insert cell
data2
=
{
const
data2
=
[
]
for
(
let
i
=
0
;
i
<
100
;
i
=
i
+
1
)
{
data2
.
push
(
{
x
:
Math
.
random
(
)
*
10
,
y
:
Math
.
random
(
)
*
10
}
)
}
return
data2
}
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.
Try it for free
Learn more
Fork
View
Export
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
data2
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML