UNPKG

com.wallstop-studios.unity-helpers

Version:

Treasure chest of Unity developer tools

14 lines (8 loc) 445 B
Random – PRNG Utilities Shows quick usage of the high-quality PRNGs (e.g., PCG) for integers, floats, Gaussian values, and sampling from collections. How to use - Add `RandomPrngDemo` to any GameObject and press Play. - Optionally change the `seed` in the inspector for deterministic sequences. What it shows - `PcgRandom` construction with a seed and sampling `Next`, `NextFloat`, `NextGaussian`. - `NextOf` to pick elements from lists.