Is there a way to generate multiple unique random numbers that will serve as raffle ticket numbers?

  • RIde2
    Asked on April 2, 2019 at 12:35 PM

    I want to sell raffle tickets.  We will sell 1 ticket for $25 or a book of 5 for $100 and the user can buy any combination. How do I genrate multiple unique numbers to accomplish this?  Are there any forms I can use with the logic built in?


  • Support_Management Jotform Support
    Replied on April 2, 2019 at 2:18 PM

    Hey @RIde2 - Sadly, there are no forms with this built-in feature. We have a widget called UNIQUE ID which autoincrements per submission. However, I don't think this will fit your needs.

    There's also a RANDOM VALUE GENERATOR widget that you may want to have a look at. As the name implies, this widget will generate a random value that you can then use as your raffle ticket numbers. You can customize how long the number will be, if it's numeric or alphanumeric, and it also checks for uniqueness.

    Related guide: How-to-Add-a-Widget-to-your-Form

    To generate multiple raffle ticket numbers, just add multiple random value generators respectively.