System verilog randomization

In reply to puttasatish:

Thank you puttasatish. Got it.
what is the difference between randomizing an objevt using the method I am using above and setting the rand_mode of the some variables(which need not be randomized) to “0” and randomizing the object. say like
var2.rand_mode(0);
object.randomize();

Thanks
Deepthi