Files
tldr/pages.zh/common/roll.md

28 lines
538 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 掷骰子
> 掷一个用户定义的骰子序列。
> 更多信息:<https://manned.org/roll>。
- 掷 3 个 6 面骰并求和结果:
`roll {{3d}}`
- 掷 1 个 8 面骰,加上 3 并求和结果:
`roll {{d8 + 3}}`
- 掷 4 个 6 面骰,保留 3 个最高结果并求和:
`roll {{4d6h3}}`
- 掷 2 个 12 面骰 2 次并显示每次结果:
`roll --verbose {{2{2d12}}}`
- 掷 2 个 20 面骰,直到结果大于 10
`roll "{{2d20>10}}"`
- 掷 2 个 5 面骰 3 次并显示总和:
`roll --sum-series {{3{2d5}}}`