Random Toolkit


Implements two new RNG algorithms for better random results, along with a range of new functions and editor tools.


by Daniel Buckley


Price History +

Random Toolkit provides a range of new tools and benefits for implementing randomness in your games.


🎲 NEW RANDOM NUMBER GENERATORS 🎲


It implements 2 new random number generators which improve upon Unity’s built in one.

  • Xorshift1204*
  • Mersenne Twister

📐 LARGE NUMBER OF IMPROVED AND NEW FUNCTIONS 📐


Over 50 new ways to utilize randomness.


  • Randomized array and list elements - Shuffled, unique elements, weighted.
  • Weighted randomness - With arrays or animation curves.
  • Random colors - Extract from gradients and textures.
  • Random points in 3D and 2D shapes - With uniform distribution and rotation. Spheres, cubes, cones, cylinders, capsules, convex 2D polygons.
  • Random uniform quaternions - as well as degrees and radians.
  • State serialization - For saving to disk or networking.
  • Random doubles and ulongs - For better precision.
  • Re-written Unity RNG to allow instancing - Implementation of the Xorshift128* algorithm.

🛠️ EDITOR WINDOW TOOLS 🛠️


Offsetting the position, rotation, and scale of selected GameObjects.


📚 IN-DEPTH DOCUMENTATION 📚


Resource to learn about RNGs, how to set up, and extensive scripting API.


Check out the documentation here.