ugh-9-inclusive"></a>Integers 5 through 9, inclusive</h2>
<pre><code class="clojure">(def five-through-nine (gen/choose 5 9))
(gen/sample five-through-nine)
;; =&gt; (6 5 9 5 7 7 6 9 7 9)
</code></pre>
<h2><a href="#a-random-element-from-a-vector" name="a-random-element-from-a-vector"></a>A random element from a vector</h2>
<pre><code class="clojure">(def languages (gen/elements ["clojure" "haskell" "erlang" "scala" "python"]))
(gen/sample languages)
;; =&gt; ("clojure" "scala" "clojure" "haskell" "clojure"