AnyDice

Sequences

Sequences are lists of numbers, for example {1, 2, 3}. When send to the output, a sequence appears equivalent to a single die. However, internally a sequence differs from a die in that its numbers have an explicit order and can occur more than once, while having no odds attached to them. You can use ranges, repetitions, and nesting to easily define long sequences. You can even convert a die to a sequence.

output {1, 2, 3} named "1, 2, 3"

output {1..3} named "1, 2, 3"

output {1:4, 2, 3} named "1, 1, 1, 1, 2, 3"

output {1..3:2} named "1, 2, 3, 1, 2, 3"

output {{1,2,4}:2, 5, 6} named "1, 2, 4, 1, 2, 4, 5, 6"

output {d4} named "1, 2, 3, 4"

output {} named "the empty sequence"
When mathematical or boolean operations are performed on a sequence, all its values are summed and the sequence behaves as if it were a single number. The behavior of condition operations depends on what the sequence is compared to.
Compared to a number
The number is compared to each number in the sequence, and the resulting zeros and ones are summed.
Compared to a die
The die is compared to the sum of all numbers in the sequence.
Compared to a sequence
The sequences are compared number by number, from left to right, resulting in either a 1 or a 0.