# Fetch 6 records from a table randomly

**URL:** <https://www.ruby-forum.com/t/fetch-6-records-from-a-table-randomly/142368>\
**Category:** Ruby\
**Created:** [July 7, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/fetch-6-records-from-a-table-randomly/142368 "2008-07-07T12:09:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [July 7, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/fetch-6-records-from-a-table-randomly/142368/1 "2008-07-07T12:09:57Z")

</div>

i have one table “documents” and i want to fetch 6 records randomly is  
there any solution reply me

Thanx  
Pragash
