Randomizing a packed struct which has an enum

In reply to prang:
Yes, packed structs are treated as a packed array of bits. You will either need to make your struck unpacked, or constrain str_s.var_b to the legal values for that enum.