Random number
In aytm logic, references and aliases can be used in multiple ways, achieving a wide range of possible text and survey flow manipulations.
For special cases when you want to use random numbers in your logic, [rand from:to] can be used to generate a random integer within defined range. The number can then be shown to respondent, used in survey flow operations, or in any other logic operations.
Examples
- Imagine you were given [rand 2:7] days of vacation... - a random number in range 2,3,4,5,6,7 would be shown to the respondent in place of logic
- [savedRandom=rand 1:100] - store random number in a numeric variable for later use in [show if savedRandom<30] to only show some element to roughly 30% of respondents.