Random Number Generator — Custom Range & Unique Picks
Pick single or up to 5,000 random integers between any custom minimum and maximum. Supports unique values, sorting, quick presets, and instant copy.
About Random Number Generator
Whether you are drawing raffle ticket stubs, ordering classroom presentations, or sampling test data, unbiased integer selection keeps results fair. Powered by the browser Web Crypto API (crypto.getRandomValues) with rejection sampling, this generator draws single integers or batches up to 5,000 numbers across custom positive or negative bounds without relying on Math.random().
Rejection sampling discards raw 32-bit values above the largest multiple of your range size, preventing modulo bias toward lower numbers. Everything executes in browser memory with URL parameter support (?min=&max=&qty=). Rolling tabletop RPG dice or coin trials instead? Switch to Online Dice Roller or Flip a Coin Online.
How Random Number Generator Works
Tap a quick preset (such as 1–100 or 6 / 49) or enter custom Minimum, Maximum, and Quantity values.
Leave "Allow duplicate numbers" unchecked for unique draws, or check it when repeats are allowed.
Choose Original, Ascending, or Descending under "Sort output".
Click "Generate" to run the draw, then click "Copy All" to copy the comma-separated result.
Popular Ways to Use Random Number Generator
Raffle Ticket Draw
Set Minimum to 1, Maximum to 500, Quantity to 3, leave Allow duplicate numbers unchecked, and click Generate to pull three unique winning ticket numbers.
Classroom Presentation Order
Set Minimum 1, Maximum 30, Quantity 5, and Sort output to Ascending to assign quick presentation slots without manual shuffling.
6 / 49 Lottery Practice Preset
Tap the 6 / 49 quick preset above the inputs to auto-fill 1 to 49, Quantity 6, unique mode, and ascending order in one click.