Range bar for "Random Value Generator" widget

  • ayushikachhara
    Asked on March 14, 2018 at 4:45 PM

    Hi there,

    I was wondering if there is a way to have random values generated on the form within a specified range. For example - if I select "2 characters" and only "numbers" - the range goes from 0-99. But I would like to generate a random number within the "Lotto" range - which is 1-40 in my country. 


    Please let me know if this is possible.


    Kind regards,


    Ayushi

  • Jed_C
    Replied on March 14, 2018 at 5:59 PM

    You can use the form calculation widget and apply the math formula like the random() function. Please see our guide here https://www.jotform.com/help/267-Form-Calculation-Math-Function-Reference and see if that helps.

    You can check the sample formula here https://form.jotform.com/80726916041960 to generate random numbers from 1-40.

    1521066968random Screenshot 10

    Let us know if you have any questions or if you need further assistance.