Random Selector - Spawn and Loot randomizer View on Asset Store (opens in new tab)

Package details

Latest version
1.5
Last updated
First released
Unity version
6000.6.2 or later
Package size
281 KB
Files
93
Favorites
3
Views in the past week
11

Price tracking

Last checked
Tracked since
Lowest recorded
$4.99 on

Keywords

Random Selector - Spawn and Loot randomizer

by Itay Sagui (opens in new tab)

1 rating, too few to average

Fast weighted random selection for Unity: build loot tables, control repeat drops, save selector configurations, and explore your results with analytics and interactive samples.

Price $4.99

Buy on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Random Selector - Spawn and Loot randomizer, 6 months Current $4.99; lowest $4.99; highest $4.99 in this period. $0 $2.5 $5 Jun Jul Aug Sep Oct Nov Version 1.5 released 2 Oct 2026 v1.5

Asset preview

1 / 1

Random Selector - Spawn and Loot randomizer screenshot 1

Random Selector - Spawn and Loot randomizer screenshot 1

About this asset

Build weighted loot tables, enemy spawners, and procedural systems with fast selection, configurable gameplay policies, and analytics. Explore the APIs in interactive samples, then save your selector configurations for reuse.

🚀 Key Features

⚡ Blazing Fast Performance

  • O(1) draws after O(N) setup using the default Alias Method algorithm
  • Allocation-free single draws and Span-based batch APIs
  • Alternative Roulette Wheel and Stochastic Universal Sampling algorithms for different selection patterns

📊 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
  • Integer weights plus a separate fractional-weight API

🎲 More Control Over Selection

  • Filter eligible items, draw batches, or pick weighted items without replacement
  • Add cooldowns to prevent repeats and pity timers to limit unlucky streaks
  • Use time-decaying weights for variety or Markov transitions for state-aware choices

🔧 Multiple Random Providers

  • UnityEngine.Random, System.Random, ThreadSafeRandom
  • Custom IRandom interface for specialized needs
  • Seeded streams and RNG state save/restore with UnityEngineRandom and SystemRandom

💾 Save and Restore Selector Configuration

  • Round-trip selector items and integer weights with Unity's JsonUtility
  • Optional Newtonsoft.Json integration when Unity's Newtonsoft package is installed
  • Bundled Odin formatter enabled with ODIN_INSPECTOR for projects using Odin Inspector
  • Selection caches rebuild on the first draw after loading

Configuration saves exclude event listeners, RNG instances, custom algorithm factories, and caches. Restore runtime setup separately and save supported RNG state alongside the configuration when you need to continue an exact sequence.

🧪 Learn With Interactive Samples

  • New tabbed advanced showcase for builders, presets, algorithms, selection policies, RNG state, and analytics
  • Inspector-configurable tables, seeds, draw counts, filters, and policy settings with Apply & restart controls
  • Side-by-side algorithm examples using the same table, seed, and batch size
  • Scrollable live results, optional event messages, clear validation feedback, and adjustable UI scale and colors
  • Focused code and loot samples, including correctly labeled live analytics and runtime-safe cleanup
  • Expanded guides for the showcase and selector/RNG save workflows

The included project is updated to Unity 6000.6.2f1, with refreshed dependencies, Inspector compatibility updates, and serialization round-trip tests.

🎮 Perfect For

  • Loot & reward systems with multi-tier probability
  • Procedural generation (enemies, levels, resources)
  • Event systems with weighted story branches
  • Dialogue and procedural music that respond to recent choices or the current state

❤️ If you like this asset then maybe you'll like these too:

From the publisher's Asset Store listing.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP Custom
6000.6.2f1 Compatible Compatible Compatible Compatible

As listed on the Asset Store.