# Scratch Recipe: Weighted Rarity Loot Table > Roll 1–100: 1–65 Common, 66–90 Rare, 91–100 Epic. Reusable Scratch 3.0 coding recipe for Weighted Rarity Loot Table: Roll 1–100: 1–65 Common, 66–90 Rare, 91–100 Epic. ## How this recipe works Roll 1–100: 1–65 Common, 66–90 Rare, 91–100 Epic. Keep this mechanic cleanly isolated in its own script or custom block so you can drop it into any Scratch game or interactive app. - Test the recipe in a blank project first so you can tune every number clearly. - Initialize all helper variables cleanly under "When green flag clicked". - Test clicking the green flag twice to confirm zero leftover state. ## More Scratch recipes & guides Combine multiple recipes together to build polished, responsive games. - [All 100 Scratch Coding Recipes](/en/recipes/): Browse movement, physics, UI, clone, and list recipes. - [Scratch Game Techniques](/en/techniques/): Deep-dive into core game architecture. - [100 Scratch Bug Fixes](/en/fixes/): Quick fixes when a mechanic behaves unexpectedly. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/recipes/weighted-loot/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)