Question
· Jun 8, 2021

Generate random number with 4 digits

Hello, first of all thanks for your time reading this question and thank you for your replies

 

We would need some help

We are trying to create a function to generate a random number with always 4 digits

 

We have already read the following topics:

https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...

https://community.intersystems.com/post/how-generate-random-string-fixed...

https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY...

 

 

How would you recommend to write a function to handle this use case?

 

Thanks for your time, replies, and advice

Discussion (5)1
Log in or sign up to continue