Randomize function returning same value each time I run my test

virtual task body();
a.randomize();
txns = a.no_transactions;
obj = new[txns];

   for(int i=0; i<txns; i=i+1)begin
    `ovm_create(obj[i])
         a.randomize();
     obj[i].core = this.a.core_id; 
     obj[i].addr = 'h0000080;
    `ovm_send(obj[i])
      obj[i].print();
       end   
endtask : body

Each time I run the test, I’m getting the same set of values. Can anybody help me with this

Unless you change your randomization seed, you’ll always get the same “random” value. This is a good thing; it allows you to reproduce errors.

In reply to bmorris:

where do I give my randomization seed? and how?

In reply to Ammu4392:

This is going to be tool dependent. Look for a command line option when you run your simulator.