In reply to jigar123:
It depends what you mean by "flag it". The `uvm_do macros emit a uvm_warning with the ID: "RNDFLD", so there are a number of ways to catch that warning.
We recommend not using the `uvm_do macros and instead inserting the exact code needed to meet your requirements.