How to select a value in a range with QuickCheck?
问题 I have the following code I am using for creating a challenge on the following site : codewars describe "Random cases" $ do it "It should handle random test cases" $ property $ prop_check where prop_check (Positive x) = solution x == ref_sol x --- ref_sol function I would like to set the value of x in prop_check to be a positive int greater than 4 and at max a five-digit number (no more than five digits, i.e : max value = 99999). How would I go about approaching it ? 回答1: You can use