A lightning-fast random number generator suite for Unity. Utilizing Burst/Job, Compute Shaders, and Rust, it empowers massive batch generation and simulations. Free Lite edition.Unlock unprecedented random generation speeds for your Unity projects. Ultimate RNG Lite is designed from the ground up to solve the bottleneck of massive batch generations. By utilizing three powerful backends—Unity's C# Job System (Burst Compiler), Compute Shaders for GPU offloading, and highly optimized Rust native plugins—you can generate millions of random numbers in a fraction of a millisecond.This free Lite edition includes a curated selection of state-of-the-art RNG algorithms, including Xoshiro256, Philox, Mersenne Twister (MT19937, SFMT), SFC64, PCG32, and more, allowing you to choose the exact balance between blinding speed and cryptographic-like quality.For the full algorithm suite including Pcg32x8, Philox32x4x4, Squares32x8, and additional Job-based generators, see Ultimate RNG (Pro).Perfect for:Procedural Terrain & World GenerationComplex Particle Systems and VFXLarge-scale simulations (flocking, traffic, fluid dynamics)Machine Learning and Monte Carlo simulations within UnityAny Data-Oriented (DOTS) workflow demanding heavy random samplingNote: Ultimate RNG is strictly specialized for batch generation and is not intended as a drop-in replacement for simple UnityEngine.Random calls in everyday, single-threaded Update logic.Key Features:Blazing Fast Performance: Achieve up to ~25x faster generation speeds compared to standard Unity or C# generators. Native plugins leverage AVX-512 SIMD instructions and parallel processing for next-generation CPU performance on supported hardware.Multiple Backends:Job System / Burst Compiler: Native C# high-speed generation (SplitMix32, Philox32x4, Pcg32, Mt19937).Compute Shader: Direct-to-GPU generation (Philox32) for zero CPU overhead.Rust Native Plugins: The absolute gold standard in statistical quality and performance (MT19937, SFMT, SFC64, PCG32, Xoshiro256, etc.). Features SIMD Auto-Dispatching to automatically detect and utilize AVX-512, AVX2, or SSE for maximum throughput on any machine. Internal state is securely initialized using SplitMix32/64.Data-Oriented Design: Built natively for use with NativeArray, Span, and the Unity Job System.Unified Interface: Clean, consistent API whether generating from Jobs, Compute Shaders, or Native Plugins.Extensive Benchmarks: Comes with an integrated Demo scene to benchmark the performance in your own specific environment.Included Algorithms:Xoshiro256++ / Xoshiro256**Philox32 (Compute Shader) / Philox64Mersenne Twister (Mt19937 / Mt19937-64 / Sfmt19937 / Sfmt19937-64)Sfc64SplitMix32 / SplitMix64Pcg32Xorshift variantsThreefry32I used AI to fix code, debug it, and create documentation.




