In reply to Andee:
What you have written is a concatenation of error values, not list of error values. If cmd_err is an enumeration, you implicitly get an even distribution of enum values; So NO_CMD_ERR should appear 1/6 of the time. But you could write
(cmd_err == NO_CMD_ERR) dist {1:=1, 0:=24}
which say NO_CMD_ERR should appear 1/25 of the time.