The IEEE Std (1800-2009) declares the arguments to $urandom_range
to be of type int unsigned
which is not the same as time
. I don't think you can rely on the system function to behave predictably even if you are not getting errors or warnings from your simulator.
It is a compile error in VCS and a warning with Incisive.
Can you use something like this?
int unsigned del = $urandom_range(10, 7);
#(1ms * del);