title: How to create a list of random uuid with specific size of elements in groovy
body: <p>Say, I want to create a list quickly which contains 1000 random UUIDs. What is the best way to accomplish this?</p>
  <p>I went through equivalent piece of code in Java:
  <a href="https://stackoverflow.com/questions/8267348/how-to-create-a-list-with-specific-size-of-elements">How to create a list with specific size of elements</a></p>
  <p>Tried code</p>
  <pre><code>List&lt;String&gt; generateValidations(final int count) {
          return Stream.generate(UUID.randomUUID().toString())
                  .limit(count)
                  .collect(Collectors.toList())
      }
  </code></pre>
  <p>But got an eror:</p>
  <pre><code>groovy.lang.MissingPropertyException: No such property: Stream for class: com.test.rds.specifications.ExecuteValidationsSpecification
  </code></pre>