本文へ移動
cccskills
無料GitHub で公開

randomness-and-determinism

Use authoritative, deterministic, weighted, and testable randomness without breaking prediction or reproducibility.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md1.5 KB
  • agents/openai.yaml245 B
  • references/random-review.md432 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Randomness is part of authority and simulation behavior, not a convenience call.

Choose the owner

Protected outcomes such as rewards, loot, combat results, economy values, role assignment, or hidden selections are chosen on the server. Client randomness is limited to presentation that has no gameplay effect.

Shared predicted logic must not use an unsynchronized random source. Either derive the result deterministically from shared inputs or let authoritative state correct presentation without duplicating side effects.

Data-driven selection

Use existing random services, weighted collections, datasets, and prototype-driven tables. Validate empty collections, zero or negative weights, duplicate entries, and missing prototype references.

Reproducibility

For tests and debugging, control the random source or inject deterministic inputs. Do not depend on global random state or test ordering.

Common failures

  • client selects a protected result;
  • prediction and server choose different values;
  • repeated retries bias a result;
  • empty collection crashes;
  • a weight change silently alters balance;
  • tests are flaky because randomness is uncontrolled.

Verification

Test empty, single-entry, weighted boundary, repeated invocation, rejected requests, deterministic test seeds, and authoritative reconciliation.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Implement actions, cooldowns, DoAfter flows, interruption, cancellation, and authoritative completion safely.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

Implement privileged commands, admin UI, role checks, audit logs, and safe operational controls.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

Plan, verify, implement, and deliver repository work through evidence-backed ownership and quality gates.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

Implement replicated appearance data, GenericVisualizer mappings, sprite layers, overlays, and client visual systems.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

atmos

無料

Modify atmos simulation, gases, fire, pressure, pipes, devices, UI, and hot paths safely.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

audio

無料

Add data-driven audio with correct prediction, audience, resources, attribution, and verification.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

ArcaneSS14 のスキルをすべて見る

このスキルの問題を報告する