title: How can I reduce the number of test cases ScalaCheck generates?
body: <p>I'm trying to solve two ScalaCheck (+ specs2) problems:</p>
  
  <ol>
  <li><p>Is there any way to change the number of cases that ScalaCheck generates? </p></li>
  <li><p>How can I generate strings that contain some Unicode characters?</p></li>
  </ol>
  
  <p>For example, I'd like to generate about 10 random strings that include both alphanumeric and Unicode characters. This code, however, always generates 100 random strings, and they are strictly alpha character based:</p>
  
  <pre><code>"make a random string" in {
      def stringGenerator = Gen.alphaStr.suchThat(_.length &lt; 40)
      implicit def randomString: Arbitrary[String] = Arbitrary(stringGenerator)
  
      "the string" ! prop { (s: String) =&gt; (s.length &gt; 20 &amp;&amp; s.length &lt; 40) ==&gt; { println(s); success; } }.setArbitrary(randomString)
  }
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <p>I just realized there's another problem:</p>
  
  <ol start="3">
  <li>Frequently, ScalaCheck gives up without generating 100 test cases</li>
  </ol>
  
  <p>Granted I don't want 100, but apparently my code is trying to generate an overly complex set of rules. The last time it ran, I saw "gave up after 47 tests."</p>