Random Selector – Spawn and Loot randomizer Unity Asset

Overview

Random Selector is a utility package which provides an efficient, weight-based, random selector. The selector can be used to randomly spawn enemies, generate loot, etc. while being extremely efficient and fast.

Features

Random Selector includes the following features:

Key Features

⚡ Blazing Fast Performance

  • O(1) selection speed using the Alias Method algorithm
  • Scales to thousands of items without slowdown
  • Zero garbage collection during selections

???? Professional Analytics

  • Real-time statistics with frequency analysis
  • Distribution validation to catch probability bugs
  • Visual testing tools with export capabilities
  • Performance profiler with benchmarking

????️ Modern Developer Experience

  • Fluent Builder API for readable code:
  • Smart presets for common patterns (uniform, exponential, tiered rarity)
  • Comprehensive editor tools with visual feedback

???? Multiple Random Providers

  • UnityEngine.Random, System.Random, ThreadSafeRandom
  • Custom IRandom interface for specialized needs

???? Perfect For

  • Loot & reward systems with multi-tier probability
  • Procedural generation (enemies, levels, resources)
  • Event systems with weighted story branches

See documentation

Purchase the Random Selector Unity Asset from here >>

Screenshots