var temp = Clib.rand(); TheApplication().RaiseErrorText(temp);
But this function do not guarantee the non-repetitive output. Instead of building any complex algorithm, to get non-repetitive random number i used Date object and getTime method. As time is allways incrementing and it never looks back :) i used this as my random number.
This method returns the date-time, in milliseconds, of the Date object.
var aDate = new Date().getTime(); TheApplication().RaiseErrorText(aDate);
Try it out it never fails.
One point to note here is that if requirement is to get series of random number in loop, then you have to add some delay of about a millisec so that system time is updated. njoy!!
Tejeshwer 34p · 812 weeks ago
Sebastian · 779 weeks ago
Tejeshwer 34p · 779 weeks ago
Can you please also share how we can use this RowIdToRowIdNum function ? is it available on the application object? or it will automatically work in workflow expression?
- Tejeshwer
Chapelain36 · 611 weeks ago