There is an OOTB function random(double,double) which can be used. In your scenario if it is not generating 10 digit number then you can generate 2 random numbers and concatenate it. For example you can generate 2 different 5-digit random number convert them to string concatenate them if you are not going to do any operation on this number then even in string format is should be fine.
Hopefully this approach might help.
Also to make sure that the random numbers generated are integers you can use round function. For example round(random(100000,99999)).
Posted: 5 months ago
Updated: 5 months ago
Posted: 16 Jun 2022 5:58 EDT Updated: 17 Jun 2022 2:33 EDT