Type of Number
Decide whether you'd like a whole number or one with decimals.
Change any setting to draw a new number.
Get this number by email.

Sometimes you just need a fair pick: a giveaway winner from a numbered list, a raffle ticket, the next student to answer, or a number for a game. The Random Number Generator Form Template lets visitors set a range and get a random number on the spot, right on your page.

How Does the Random Number Generator Form Template Work?

The template uses the WPForms Calculations addon to draw a number between the minimum and maximum, including both ends. Changing any setting draws a new number. It works as a random number picker, a 1 to 100 number generator, a raffle or giveaway number picker, or a random decimal generator. Fields include:

  • Type of Number: Whole number or decimal, with whole number selected to start.
  • Minimum and Maximum: The range to draw from, set to 1 and 100 to start.
  • Decimal Places: Appears only for decimals, from 1 to 5 places.
  • Your Random Number: The result, which always falls inside the range.
  • Email (optional): Visitors who want a record submit the form to get their number by email. The confirmation shows the same number that’s saved with the entry.

Each submission is saved as an entry, and you’ll get a notification email. The numbers come from the browser’s standard random function, so they’re fine for games, classrooms, and casual giveaways, but don’t use them for passwords, security keys, or regulated lotteries. You can change the starting range, remove the decimal option, or reword the button.

Get WPForms Pro to start using this template, along with 2,000+ other pre-made form templates.