<p>You could try customizing the order parameter. MySQL allows ordering randomly by using <code>.. ORDER BY rand()</code>. So you could try the following:</p>

<pre><code>craft.entries.section('featured').order('rand()').first()
</code></pre>

CC BY-SA 3.0
2017-06-27T10:59:53.923Z
2017-06-28T00:38:09.863Z
2017-06-28T00:38:09.863Z
pauliusef
<p>Looking to get a random entry from my database which is tagged with 'featured', is this possible at all? I've seen randomised by just the entry loop but nothing else.</p>

<entries><tags>
Get random entry tagged with
# Get random entry tagged with

(Asked by: username_0 on 2017-06-27)

Looking to get a random entry from my database which is tagged with 'featured', is this possible at all? I've seen randomised by just the entry loop but nothing else.

**Tags:** entries, tags

---

## 1 answers

### Answer by username_1 on 2017-06-27. Score: 3 | Accepted answer

You could try customizing the order parameter. MySQL allows ordering randomly by using .. ORDER BY rand(). So you could try the following:
craft.entries.section('featured').order('rand()').first()


---

