Use of defparam statement inside $test$plusargs condition in tb_top module in UVM

In reply to dave_59:

How to change the value/pass value to the parameterized module based on randomization?
For example
rand bit xyz;

Module instantiation with default value.
eg #(.PARAM_A (0)) eg1 (…); // But PARAM_A should be assigned based on the random variable xyz