Forum Discussion
shankar_r
Community 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); }
Feroz
7 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
Related Content
Recent Discussions
Check PopupMenu exists
Solved54 minutes agomfoster711- 23 hours agosimonaferrara
- 2 days agomacheshmeh