# Show random post?

**URL:** <https://meta.discourse.org/t/show-random-post/83665>\
**Category:** Product Support\
**Created:** [March 23, 2018, 4:28pm UTC](https://meta.discourse.org/t/show-random-post/83665 "2018-03-23T16:28:39Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [March 28, 2018, 2:07pm UTC](https://meta.discourse.org/t/show-random-post/83665/15 "2018-03-28T14:07:16Z")

</div>

A better query 😉

```sql
SELECT * 
FROM topics
WHERE category_id BETWEEN 5 AND 8
ORDER BY random()
LIMIT 1

```

---

_[View the full topic](https://meta.discourse.org/t/show-random-post/83665)._
