retrieve assets from an entries Im looking up the last 2 entries like this

{% set entries = craft.entries.section('report').limit(2) %}


My entry got an assets field called 'portfolio'. I would like to retrieve 8 images in random order. How would I do this?
You could try something like:

{% for entry in entries %}
  {% for image in entry.portfolio.orderBy('RAND()').limit(8)
    &lt;img src="{{ image.getUrl() }}"&gt;
  {% endfor %}
{% endfor %}