wave4-unity-mathematics-random-per-entity

Community

Deterministic per-entity parallel RNG streams

AuthordyCuong03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the challenge of generating random values that are both deterministic and safely usable in parallel ECS jobs without introducing shared-state correlations.

Core Features & Use Cases

  • Per-entity deterministic randomness: Produces statistically independent streams by seeding via entity index using Unity.Mathematics.Random.CreateFromIndex().
  • Burst-safe parallel execution: Ensures each worker advances its own RNG derived for that entity, avoiding race conditions.
  • Two workflows: One-shot spawn variation (create RNG inside Execute) and persistent per-entity randomness (store Random as IComponentData and pass by ref).

Quick Start

Tell an AI to show how to create a Burst job that uses Unity.Mathematics.Random.CreateFromIndex((uint)entityIndex + FrameSeed) to generate deterministic per-entity offsets and scales in an IJobEntity Execute method.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: wave4-unity-mathematics-random-per-entity
Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#wave4-unity-mathematics-random-per-entity

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.