Advanced Random Picker - Weighted Random & Shuffle Bag
Eray Gürayman
$10.99
(no ratings)
Jump AssetStore
Weighted random picks for any type. Set weights in the Inspector, see live chance bars, switch between Random, No Repeat and Shuffle Bag, seed it, and test 10,000 picks before you press Play.Editor tool, works with every render pipeline. Unity 2022.3 or newer.Add a RandomPicker field to any script, set the weights in the Inspector and call Pick(). That is the whole setup.It works with prefabs, audio clips, sprites, strings, enums and your own structs. Weights turn into percentages and chance bars while you type, and the Test button runs 10,000 picks so you can see what players will actually get.FeaturesOne generic field: RandomPicker, RandomPicker, RandomPickerInspector with weights, live chance bars, Equalize and drag and dropThree modes: Random, No Repeat (never the same entry twice in a row) and Shuffle Bag (every entry once before anything repeats)Test button: 10,000 picks with the current mode, shown next to the expected chanceTryPick with a filter, PickMany with unique picksPass a System.Random for repeatable resultsAGENTS.md and an AI Prompt button so coding assistants use it correctlyGood forLoot and rewards, enemy spawns, footsteps and voice lines, card decks and playlists, AI choices.SamplesDaily reward, enemy spawner, footsteps and a nested loot table, each a short script you can read in a minute.Upgrading from 1.x: 2.0 is a rewrite with a new API. Pickers made with 1.x need to be set up again. The documentation explains the new field.Full C# source. Editor and runtime, all render pipelines. Documentation is included as README.md.Unity 2022.3 or newer, tested on Unity 6Runtime: RandomPicker, RandomPickerBase, PickModeEditor: UI Toolkit property drawer with an IMGUI fallbackNo dependencies, no third-party codeAssembly definitions for runtime and editorDocumentation: README.md, AGENTS.mdCode, documentation and this description were written with Claude Code (Anthropic) as a coding assistant. I decided what each tool does and how it looks, reviewed the code, and tested it in Unity 6 with EditMode tests and by hand. Store images are composed from real editor screenshots of the tool. No AI image generation was used.






