Random Number Generator
Generate random integers within a custom min/max range — with optional no-duplicates mode.
How to use this tool
- 1Set the Min, Max, and Count fields.
- 2Check 'No duplicates (unique numbers)' if you need each number to appear only once.
- 3Click Generate — results appear as number badges.
- 4Click 'Copy all' to copy all numbers as a comma-separated list.
About Random Number Generator
Picking random numbers for raffles, sampling, simulations, and games requires control over the range and whether duplicates are allowed. This generator takes a Min value, Max value, and Count, then generates random integers using Math.floor(Math.random() × (max - min + 1)) + min. A 'No duplicates' checkbox enables unique mode: the full range is built as an array, shuffled with Math.random(), and the first Count items are taken — ensuring no number appears twice. If Count exceeds the range size in unique mode, an error is shown. Results appear as styled number badges with a 'Copy all' button that copies them as a comma-separated list. Teachers picking random students, developers generating test data, and anyone running a lottery or raffle are the primary users. Runs entirely in your browser.
Frequently asked questions
Related Tools
QR Code Generator
Generate QR codes for any text or URL with custom size, foreground, and background colors.
QR Code Scanner
Scan QR codes using your device camera or by uploading an image — uses jsQR in your browser.
Barcode Generator
Generate barcodes in CODE128, EAN13, EAN8, UPC, CODE39, ITF14, and more — download as SVG.