# pick random (1) to (10) — Scratch Block Guide > Generates a random number inclusively between the first and second values. How to use the "pick random (1) to (10)" block in Scratch 3.0 (Operators Blocks): clear explanation, working block example, and debugging tips. ## What this block does Generates a random number inclusively between the first and second values. Roll dice (1–6), choose random spawn x coordinates (-200 to 200), or vary enemy timing. - Category: Operators Blocks - Key tip: If both inputs are whole numbers, Scratch picks a whole number; include a decimal (e.g., 1.0) to get decimals. ## Working Scratch example Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it. **Example using pick random (1) to (10)** - When green flag clicked - Say (pick random (1) to (6)) for (2) seconds Try it: Simulates a fair 6-sided die roll. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Operators Blocks](/en/dictionary/operators/): See the overview and patterns for Operators Blocks. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/operators/random/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)