Forum Discussion
- baxatobCommunity Hero
You can use a built in Data Generator Wizard
Just change generation mode from sequential to random.
- HKosovaSmartBear Alumni (Retired)
You can use this function to generate random integers in the Min...Max range:
Function RandomNumber(Min, Max) Randomize RandomNumber = Int(Min + Rnd*(Max - Min + 1)) End Function
Usage:
number = RandomNumber(0, 100)
- Viji123Occasional Contributor
Function RandomNumber(Min, Max) Randomize RandomNumber = Int(Min + Rnd*(Max - Min + 1)) End Function
I tried to implement this logic using python , its not working
I tried as below
def RandomNumber(Min, Max)
Randomize
RandomNumber = Int(Min + Rnd*(Max - Min + 1))Here am getting error in the second line ie. "Randomize" doesnt exist in python. Please advice
Related Content
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago