AnsweredAssumed Answered

How to generate Random Data for fixed percentages

Question asked by Rajasekhare on Jul 15, 2017
Latest reply on Aug 1, 2017 by Rajasekhare

Hi Team,

 

I have the below requirement.

For one of the fields, there are 4 valid values. Ex: V1, V2, V3 and V4

 

I want to generate the data on percentage basis. 

Ex: if i want to generate 100 rows, that field should contain V1 for 25 rows,V2 for 25 rows,V3 for 25 rows, V4 for 25 rows.

 

If i use below functions, i am not getting as per the percentages.

@randlov(0,@occlist(n%string,n%string[,n%string...])@)@
@randlov(0,@perclist(n%string,n%string[,n%string...])@)@

 

Could you please help me on this.

 

Thank you.

Outcomes