vectors, just sort them using <code>gen/fmap</code> and <code>sort</code>.</p>
<h2><a href="#a-vector-and-a-random-element-from-it" name="a-vector-and-a-random-element-from-it"></a>A vector and a random element from it</h2>
<pre><code class="clojure">(def vector-and-elem (gen/bind (gen/not-empty (gen/vector gen/int))
                               #(gen/tuple (gen/return %) (gen/elements %))))
(gen/sample vector-and-elem)
;; =&gt;([[-1] -1]
;; =&gt; [[0] 0]
;; =&gt; [[-1 -1] -1]
;; =&gt; [[2 0 -2] 2]
;; =&g