In reply to dave_59:
In reply to Anil Sharma:
I think you are dealing with a tool issue, try a different one.
Initially, I was trying with Synopsys VCS 2014.10 and I got a warning like this
Warning-[CNST-PPRW] Constraint randomize NULL object warning
Then I tried with cadence incisive 15.20
My outputs came like this --> 14 2 9 2 19 11 9 14 14 8
which is not in ascending fashion.
I got the same with the Aldec Riviera Pro 2015.02 I got the output like cadence but here as well it was not in ascending order...
Should I go for the higher version of VCS?
code link https://www.edaplayground.com/x/4Kyb