Habilidades enact/dice-roll-rust
🎲

enact/dice-roll-rust

Seguro ⚙️ Comandos externos

使用自訂面數擲骰

使用者需要用於桌上遊戲與模擬的隨機數生成。這個技能提供簡單、快速、以 Rust 為基礎的擲骰器,可設定面數與數量以滿足各種隨機數需求。

Suporta: Claude Codex Code(CC)
⚠️ 66 Ruim
1

Baixar o ZIP da skill

2

Upload no Claude

Vá em Configurações → Capacidades → Skills → Upload skill

3

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

Seguro
v1 • 1/23/2026

False 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.

2
Arquivos analisados
188
Linhas analisadas
1
achados
1
Total de auditorias

Fatores de risco

⚙️ Comandos externos
Nenhuma localização específica registrada
Auditado por: claude

Pontuação de qualidade

38
Arquitetura
100
Manutenibilidade
85
Conteúdo
22
Comunidade
100
Segurança
65
Conformidade com especificações

O Que Você Pode Construir

桌上遊戲

為 D&D、Pathfinder 或其他桌上 RPG 擲骰。即時產生戰鬥擲骰、技能檢定或傷害擲骰。

統計抽樣

為模擬、實驗或機率概念教學產生隨機數。多顆骰子可用來模擬各種分佈。

遊戲開發

在開發流程中透過擲骰測試遊戲機制。快速產生原型所需的隨機值。

Tente Estes Prompts

簡單擲骰
Roll a d{sides} using enact/dice-roll-rust
多顆骰子
Roll {count} d{sides} dice with enact/dice-roll-rust
D&D 能力值生成
Roll 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 total

Melhores Práticas

  • 在呼叫技能前先驗證骰子參數,確保在可接受範圍內
  • 需要逐一分析每顆骰子時,使用各別擲骰結果陣列
  • 妥善處理單顆擲骰或最大顆數等邊界情況

Evitar

  • 不要用於安全性關鍵的隨機值 - 它使用不適合密碼學的簡單 LCG
  • 不要把文件中的程式碼圍欄當成實際 shell 執行 - 這個工具是安全的文件範例
  • 不要期待密碼學等級的隨機性 - 這是使用基本 PRNG 的教學範例

Perguntas Frequentes

支援哪些骰子類型?
支援 2 到 100 面的任何骰子。常見類型包括 d4、d6、d8、d10、d12、d20 與 d100。
一次可以擲幾顆骰子?
一次可擲 1 到 100 顆骰子。每顆骰子獨立擲出。
隨機生成是否具備密碼學安全性?
否。此工具使用為教育用途與遊戲設計的簡單線性同餘產生器。請勿用於安全敏感的應用。
輸出使用什麼格式?
技能會回傳結構化 JSON,包含 rolls(各別結果陣列)、total(總和)、sides 與 count 欄位。
可以取得可重現的結果嗎?
否。隨機數產生器由系統時間播種,無法手動設定種子以取得可重現的序列。
這個技能使用上安全嗎?
是。這是一個簡單的擲骰工具,除了產生隨機數外不會進行任何檔案系統、網路或系統操作。

Detalhes do Desenvolvedor

Estrutura de arquivos

📄 dice.rs

📄 SKILL.md