Forum Discussion
shankar_r
7 years agoCommunity Hero
Hi,
You can use following code to generate 4 digit random number.
//A random integer within the [min; max] interval function get4DigitRandomInt() { var min = 1000, max = 9999; return Math.round(Math.random()*(max-min)+min); }
- Feroz7 years agoOccasional Contributor
Thanks Shankar. My issue got fixed.
The issue was using the last operation Result, not with the code snippet.
Anyways thanks for the reply :)
Regards,
Feroz