How to randomize realtime values in SV/UVM

In reply to chr_sue:

In reply to poonamnlwd:
Is it multiples of 3.8 you want to use? Then simply randomize the factor like this:
rand int mult;
Then you can do the following in the driver:
delay = req.mult*3.8;
Or you do prior to randomizing: multiply with 10 and after randomizaion you are dividing by 10.
But I believ you want to select values from a given list in random order. Right?

Sorry for late reply.


  in testcase,
  int delay;
  delay = 15.2 * 10;

  in driver,

  int delay;
  real real_delay;
  
  real_delay = real'(delay/10);

when I am printing value of real_delay, I am getting value 15. 
what can I do so that I will get 15.2 value?