How can I use $urandom/$random with range?

In reply to dave_59:

I have to use seed because needs of repreduce bugs.
I use ModelSim, not Questa.