How to select specific random values in class declaration?

In reply to pavan yala:

rand int write_client_select;
randomize (write_client_select) with { write_client_select inside { 1,3,4,7,8,9,10,11,12,13,14,15,17,20,21,22,23,24,25,27,29,30};};

Pavan, I tried this but getting compilation error, “**): near “(”: syntax error, unexpected ‘(’, expecting IDENTIFIER or ‘=’.****”