AnsweredAssumed Answered

Random number generator > than previous. Survey123

Question asked by triston.rice on Aug 31, 2020
Latest reply on Sep 3, 2020 by Philip.Wilson-esristaff



So I am creating a survey in Survey123 where I am hoping to create a calculation that generates a random number greater than the previous, in a repeat. 


We use random numbers to generate where a biological sample will be taken within a given distance. Ideally starting at 0ft and performing 8 random biological assessments before the end of the given distance. I already created two calculations, one which creates a number between 1 and 99, to obtain a percentage of the total distance: round(random()*99,1). And a second which multiples that number by the total distance: round(${riffle_length} * (${random_riffle} div 100), 2). 


All I want to do now, is set the random number generator to ensure the next random number is always greater than the previous.


How would I approach doing this? Or would a repeat not even be the best method in the first place.