rng-seeding-patterns
CommunityMaster RNG for predictable game logic.
Software Engineering#testing#game development#rng#random number generation#deterministic logic#seed management
Authorpmarashian
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of managing random number generation (RNG) in game development, ensuring predictable and reproducible outcomes when needed for testing, debugging, or specific gameplay mechanics.
Core Features & Use Cases
- Seeded vs. Unseeded RNG Guidance: Clearly defines when to use deterministic (seeded) or non-deterministic (unseeded) RNG.
- Seed Management Patterns: Provides practical patterns for managing RNG seeds, including scene-level, URL parameters, and test modes.
- Deterministic Logic Examples: Illustrates how to implement deterministic game logic for maze generation, enemy spawning, and item placement.
- Test Patterns: Offers methods for testing RNG behavior, verifying deterministic outputs and seed regeneration.
Quick Start
Use the rng-seeding-patterns skill to document when to use seeded vs. unseeded RNG, provide patterns for RNG seed management, include examples of deterministic game logic, document seed regeneration patterns, and provide test patterns for RNG behavior.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rng-seeding-patterns Download link: https://github.com/pmarashian/cursor-agent-skills/archive/main.zip#rng-seeding-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.