Wolfram.com
WolframAlpha.com
WolframCloud.com
Wolfram Language
Example Repository
Ready-to-use examples for the Wolfram Language
Primary Navigation
Categories
Astronomy
Audio Processing
Calculus
Chemistry
Computer Science
Computer Vision
Control Systems
Creative Arts
Data Science
Engineering
Finance & Economics
Finite Element Method
Food & Nutrition
Geography
Geometry
Graphs & Networks
Image Processing
Life Sciences
Machine Learning
Mathematics
Optimization
Physics
Presentation & Publication
Puzzles and Recreation
Quantum Computation
Signal Processing
Social Sciences
System Modeling
Text & Language Processing
Video Processing
Visualization & Graphics
Alphabetical List
Submit a New Resource
Related Pages
Related Symbols
Tuples
BinomialDistribution
Related Categories
Mathematics
Outcomes from Dice
Example Notebook
Open in Cloud
Download Notebook
Simulate dice tosses for various combinations of dice
Simple Cases
(
8
)
Here are possible values for a 6-sided die:
I
n
[
1
]
:
=
T
a
b
l
e
[
i
,
{
i
,
6
}
]
O
u
t
[
1
]
=
{
1
,
2
,
3
,
4
,
5
,
6
}
These are possible totals for 2 6-sided dice:
I
n
[
2
]
:
=
F
l
a
t
t
e
n
[
T
a
b
l
e
[
i
+
j
,
{
i
,
6
}
,
{
j
,
6
}
]
]
O
u
t
[
2
]
=
{
2
,
3
,
4
,
5
,
6
,
7
,
3
,
4
,
5
,
6
,
7
,
8
,
4
,
5
,
6
,
7
,
8
,
9
,
5
,
6
,
7
,
8
,
9
,
1
0
,
6
,
7
,
8
,
9
,
1
0
,
1
1
,
7
,
8
,
9
,
1
0
,
1
1
,
1
2
}
Here's a histogram of the total values:
I
n
[
3
]
:
=
H
i
s
t
o
g
r
a
m
[
%
,
{
1
}
]
O
u
t
[
3
]
=
Results for 3 dice:
I
n
[
4
]
:
=
F
l
a
t
t
e
n
[
T
a
b
l
e
[
i
+
j
+
k
,
{
i
,
6
}
,
{
j
,
6
}
,
{
k
,
6
}
]
]
O
u
t
[
4
]
=
{
3
,
4
,
5
,
6
,
7
,
8
,
4
,
5
,
6
,
7
,
8
,
9
,
5
,
6
,
7
,
8
,
9
,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
4
}
Histogram of the results:
I
n
[
7
]
:
=
H
i
s
t
o
g
r
a
m
[
%
,
{
1
}
]
O
u
t
[
7
]
=
Histogram of values for 3 12-sided dice:
I
n
[
8
]
:
=
H
i
s
t
o
g
r
a
m
[
F
l
a
t
t
e
n
[
T
a
b
l
e
[
i
+
j
+
k
,
{
i
,
1
2
}
,
{
j
,
1
2
}
,
{
k
,
1
2
}
]
]
,
{
1
}
]
O
u
t
[
8
]
=
T
h
e
M
o
r
e
G
e
n
e
r
a
l
C
a
s
e
(
9
)
B
e
y
o
n
d
C
o
m
p
u
t
i
n
g
T
o
t
a
l
s
(
5
)
See Also
CoinTossSimulator
IdealCoinTossStatistics
Related Symbols
Tuples
BinomialDistribution
Publisher Information
Contributed by:
Wolfram Staff