Magic square on system verilog

In reply to rag123:

See Constraint Randomization | Verification Academy