enact/dice-roll-rust
使用自訂面數擲骰
使用者需要用於桌上遊戲與模擬的隨機數生成。這個技能提供簡單、快速、以 Rust 為基礎的擲骰器,可設定面數與數量以滿足各種隨機數需求。
Baixar o ZIP da skill
Upload no Claude
Vá em Configurações → Capacidades → Skills → Upload skill
Ative e comece a usar
Testar
A utilizar "enact/dice-roll-rust". Roll 2d6 using enact/dice-roll-rust
Resultado esperado:
擲了兩顆 6 面骰:[4, 6],總和:10
A utilizar "enact/dice-roll-rust". Roll a d20
Resultado esperado:
擲了一顆 20 面骰:15
A utilizar "enact/dice-roll-rust". Roll 4d6 for stats
Resultado esperado:
擲了四顆 6 面骰:[3, 5, 6, 1],總和:15
Auditoria de Segurança
SeguroFalse positive findings dismissed. Static scanner flagged LCG random number generation as 'weak cryptographic algorithm' and Markdown code fences as 'shell backtick execution'. Both are harmless patterns in this educational dice rolling tool. No actual security risks found.
Fatores de risco
⚙️ Comandos externos
Pontuação de qualidade
O Que Você Pode Construir
桌上遊戲
為 D&D、Pathfinder 或其他桌上 RPG 擲骰。即時產生戰鬥擲骰、技能檢定或傷害擲骰。
統計抽樣
為模擬、實驗或機率概念教學產生隨機數。多顆骰子可用來模擬各種分佈。
遊戲開發
在開發流程中透過擲骰測試遊戲機制。快速產生原型所需的隨機值。
Tente Estes Prompts
Roll a d{sides} using enact/dice-roll-rustRoll {count} d{sides} dice with enact/dice-roll-rustRoll 4d6 drop lowest for D&D stat generation using enact/dice-roll-rust
Roll {count} {sides}-sided dice and show me each result plus the totalMelhores Práticas
- 在呼叫技能前先驗證骰子參數,確保在可接受範圍內
- 需要逐一分析每顆骰子時,使用各別擲骰結果陣列
- 妥善處理單顆擲骰或最大顆數等邊界情況
Evitar
- 不要用於安全性關鍵的隨機值 - 它使用不適合密碼學的簡單 LCG
- 不要把文件中的程式碼圍欄當成實際 shell 執行 - 這個工具是安全的文件範例
- 不要期待密碼學等級的隨機性 - 這是使用基本 PRNG 的教學範例