How to pick random values from an `Enum` type?

This works:

rand(instances(Ball), 10)
1 Like