Enum type generation with distributed wight

You can also write dist constraints on expressions, which will make the code shorter:



constraint error_distribution { 
  Error_Type == No_error dist {
    0 := 25,
    1 := 75
  };