Randc on a struct isn't giving expected results

In reply to szy0014:

Can you tell me where did I go wrong?

You chose the wrong simulator. Report the problem to your vendor and try a different tool.