cancel
Showing results for 
Search instead for 
Did you mean: 

Function to generate a random number

PrateekMehan
Level 6
Hi Is there a method to generate a random number in BP of specified length. Or any other way to do it. Any advice would be appreciated. Thanks in advance.
2 REPLIES 2

Getting a random value could be done with codestage: Random = CInt(Math.Floor((upperlimit - lowerlimit + 1) * Rnd())) + lowerlimit with lower and upperlimit being input variables and Random being your output number variable. Also your business object needs to import following namespace: Microsoft.VisualBasic

PrateekMehan
Level 6
Thanks it worked.