Platform
Resources
Pricing
Sign in
Get started
Toni
Workspace
Fork
Published
in class notes
By
Toni
Edited
Aug 27, 2020
Insert cell
md
`# Arrays of random numbers`
Insert cell
{
const
data
=
[
]
for
(
let
i
=
0
;
i
<
100
;
i
=
i
+
1
)
{
data
.
push
(
Math
.
random
(
)
*
10
)
}
return
data
}
Insert cell
{
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML