# Random Selector – Spawn and Loot randomizer Unity Asset

- Link: https://saguiitay.com/unity/random-selector-spawn-and-loot-randomizer/
- Published: 2022-07-22T13:44:45+03:00
- Author: Itay

## 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](https://saguiitay.com/random-selector-documentation/)

**[Purchase the Random Selector Unity Asset from here >>](https://assetstore.unity.com/packages/slug/210189?aid=1101lS3S)**

## Screenshots

![Random Selector – Spawn and Loot randomizer Screenshot](https://i0.wp.com/www.
saguiitay.com/wp-content/uploads/Card-1.webp?ssl=1 "Random Selector - Spawn and 
Loot randomizer Unity Asset 1")

![Random Selector – Spawn and Loot randomizer Screenshot](https://i0.wp.com/www.
saguiitay.com/wp-content/uploads/Screenshot1-23.webp?ssl=1 "Random Selector - Spawn
and Loot randomizer Unity Asset 2")
