inline fn enumValue(r: Random, comptime EnumType: type) EnumType

Returns a random value from an enum, evenly distributed.

Note that this will not yield consistent results across all targets due to dependence on the representation of usize as an index. See enumValueWithIndex for further commentary.

Parameters

r: Random,
EnumType: type,