Question

4
Replies
264
Views
Vamsi.Thatavarthi Member since 2014 35 posts
Hcl Technologies
Posted: 2 years ago
Last activity: 2 years 9 months ago
Closed
Solved

Queries regarding Monte Carlo Data set

Hi Team,

I'm exploring Monte carlo data set to see if we can generate test data as per our needs. We usually use GenRockit to generate such test data. I'm not able implement few requirements via this data set.

1) Area code - It should be randomly selected among 510, 408, 416 .I have tried Options.optionsCSV(Text). But didn't work as these are integers.

2) Mobile number - It should be a random number generated in the format XXX-XXXX (e.g. 257-9011). I couldn't find a way to do that.

3) Conditionally generate Random Integers in Range - I have used this expression, @If(InternationalPlan=="Yes",@random(10,50),@random(0,30)). But the random number generated is a decimal with almost 8-9 digits after the decimal point. Is there a way to generate random integers with in range conditionally? or decimals with limited digits after decimal point.

Thanks,

Vamsi.

Data Integration
Moderation Team has archived post
Share this page LinkedIn