Title: Order by random variable
Last modified: August 22, 2016

---

# Order by random variable

 *  [ashirogimuto](https://wordpress.org/support/users/ashirogimuto/)
 * (@ashirogimuto)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/order-by-random-variable/)
 * Hi, is there a way to order by a variable that is rand() ?
 * What I’m trying to do is keep the random value used in the query.
 * If you can give me an example along with the answers would be really helpfull.
 * Thanks.

The topic ‘Order by random variable’ is closed to new replies.

## Tags

 * [order by](https://wordpress.org/support/topic-tag/order-by/)
 * [orderby](https://wordpress.org/support/topic-tag/orderby/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ashirogimuto](https://wordpress.org/support/users/ashirogimuto/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/order-by-random-variable/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
