# Lottery number generator > How can you draw six lottery numbers? Draw six different numbers from 1 to 49, sorted in ascending order. Change the range and count to match your game. Draw six different numbers from 1 to 49, sorted in ascending order. Change the range and count to match your game. A preset of [Random number](https://how.box/random-number/). - Page: https://how.box/lottery-numbers/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/lottery-numbers/?mode={mode}&min={min}&max={max}&n={n}&u={u}&s={s} - `mode` (numbers or coin): numbers or coin. Example: `numbers`. - `min` (whole number -1e9 to 1e9): Smallest number, an integer. Example: `1`. - `max` (whole number -1e9 to 1e9): Largest number, an integer. Example: `100`. - `n` (whole number 1 to 1000): How many numbers or flips, 1–1000. Example: `1`. - `u` (boolean): No repeats: 1 or 0. Example: `false`. - `s` (boolean): Sort ascending: 1 or 0. Example: `false`. Example answer: https://how.box/lottery-numbers/?mode=numbers&min=1&max=100&n=1&u=0&s=0 The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `random_number_generate`: Draws random integers between min and max (both included), or flips a fair coin, with the browser's cryptographically secure random generator (uniform, no modulo bias). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"random_number_generate","arguments":{"mode":"numbers","min":1,"max":100,"count":1,"unique":false,"sorted":false}}}` - GET: https://how.box/mcp/run/random_number_generate?mode=numbers&min=1&max=100&count=1&unique=false&sorted=false ## How it works This preset draws a row the way a lottery machine does: six different numbers from 1 to 49, none used twice. Every number has the same chance, and every possible row is equally likely, so a row such as 1 2 3 4 5 6 is exactly as likely as any other. The numbers come from your device's secure random generator. The table counts what a random row can match against a draw of six numbers. There are 13,983,816 possible rows; rows that share exactly three numbers with the draw are the common ones, about 1 in 57, and a full match is a single row. The counts come from choosing the right numbers from the six drawn and the rest from the 43 others. A random row does not improve your chances: it is as likely to win as a row you chose yourself. What it can do is avoid numbers many people pick, such as birthdays up to 31, which only matters when a prize is shared between winners. ## FAQ **Does this predict winning lottery numbers?** No. This is a random 6-of-49 selection, not a prediction or an official lottery draw. **Is a random row less likely to win than one I choose?** No. Every row is equally likely to be drawn, so a random row and a chosen row have the same chance. **Can I use it for a different lottery?** Yes. Change the range and the count to the numbers your game uses, for example 7 out of 40. **Does sorting change which numbers are drawn?** No. Sorting only changes the display order. The same six distinct numbers remain selected. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)