Creating random numbers

  • Profile Image
    Kerr_Sharon
    Asked on December 16, 2020 at 02:44 AM

    So I’ve managed to create my form and I’ve even managed to generate one random number within the form which I’ll explain in a minute how I did. What I need to do is generate a random number for each entry into the raffle. So what I’ve done so far is created a box that says how many tickets do you want to purchase and then underneath there is a widget that generates a random number but I need that to generate the number of tickets purchased so for example if somebody purchases five tickets I need five widget boxes or random numbers generated everything I’ve tried has failed and I can only generate one random number Has anyone got any ideas on how to generate more than one random number based on the number of tickets sold whilst ensuring that each random number is unique and doesn’t copy any other random number that has been issued to the same person or any other person that month

  • Profile Image
    Richie_P
    Answered on December 16, 2020 at 03:55 AM

    You can use the random generator to generate random number

    https://www.jotform.com/widgets/random-value-generator

    1608108848_5fd9cb309fb18_3.png

    You may use conditions to show/hide the random value generator widget based on the number of tickets selected.

    Guide:https://www.jotform.com/help/316-how-to-show-or-hide-fields-base-on-user-s-answer

    Please check it out and let us know how it goes.