Free AI Tools

View all 83 →

Random Number Generator

Need to pick a raffle winner, choose a random student, draw lottery-style numbers for a game, or sample rows from a spreadsheet? This free random number generator picks whole numbers between any minimum and maximum you set. Generate a single number or a whole list, choose whether numbers may repeat or must all be unique (like drawing tickets from a hat), and optionally sort the results. Unlike many simple generators that use JavaScript's Math.random, this one uses your browser's cryptographically secure random source (crypto.getRandomValues) with rejection sampling, so every number in the range is equally likely and there's no subtle bias toward low numbers. That makes it a fair choice for giveaways and classroom picks. It also keeps a short history of your last draws on screen so you can show your working, and a copy button to paste results into a spreadsheet or chat. Please don't use it for regulated lotteries or gambling, which have their own certified systems. Everything happens on your device; nothing is logged or sent, so no one, including us, can see or influence the results.

Generate random numbers

Press Generate

History

    How to use the random number generator

    1. Set the minimum and maximum (both included).
    2. Choose how many numbers you need.
    3. Tick "No repeats" for draws where each number can only come up once.
    4. Press Generate, then copy the results.

    Quick ideas

    • Coin flip: 1 to 2.
    • Dice roll: 1 to 6.
    • Pick a raffle winner: 1 to the number of tickets.
    • Random sample: 1 to your row count, no repeats.

    FAQ

    Is it truly random?

    It uses your browser’s cryptographically secure pseudo-random generator, which is designed to be unpredictable and is used for things like encryption keys. For everyday picks it’s as fair as it gets.

    Are min and max included?

    Yes, both ends of the range can be picked.

    What does “no repeats” do?

    Each number can appear only once, like drawing from a hat. You can’t ask for more unique numbers than the range contains.

    Can I use it for official lotteries?

    No. Regulated lotteries and gambling require certified systems. Use this for games, classrooms and giveaways.

    Related on Botvana

    Comments

    Contact Botvana

    Newsletter

    One short email every Friday: the AI news that matters and one tool worth trying.

    Botvana
    Home About Newsletter
    Home Topics Search Newsletter