Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
1/8
Burst optimised random number generators with lots of additional and supporting functions, supports
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2020.3.47f1
Compatible
Compatible
Compatible
Additional compatibility information

Needs burst >= 1.8.2 and ".NET Framework" build setting (also called .NET 4.x in some Unity versions).

Description

Documentation | ChangeLog | Support Form | Feature Requests

Use the random number generators for your next great game. Various rngs are provided that offer more flexibility than the default C# or Unity provided standard. Faster RNGs or RNGs with more stochastical uniqueness.

Useful for burst optimized algorithms like procedural generation, simulations and/or normal C# code like RPGs

Technical details
  • All algorithms are compatible with Burst, IL2CPP and Mono
  • Uses only structs and uses only NativeArray
  • RNG Algorithms:
    • Xoroshiro Variants, Xoshiro256, Lehmer, PCG, Lcg, SplitMix, more to come
  • Generation of
    • bools, uint, int, ulong, direction, double, float, fill arrays, spans and slices
  • Distributions:
    • Normal (Ziggurat Variant), Roulette, more to come
  • Almost 100% Unit-test coverage, over 6000 unit test cases
    • Every function is checked if it executes successfully in mono, burst and IL2CPP
  • Platform Support
    • Windows
    • Mac M1/Intel
    • Android
    • iOS
    • WebGL
    • ⛔ Game Consoles (Untested, but should work)


GeneralRandom

(not enough ratings)
10 users have favourite this asset
(10)
$8.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
1.3 MB
Latest version
1.2.0
Latest release date
Oct 24, 2023
Original Unity version
2020.3.47
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR