Title: How do I shuffle elements?
Last modified: August 24, 2016

---

# How do I shuffle elements?

 *  [squarology](https://wordpress.org/support/users/squarology/)
 * (@squarology)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-shuffle-elements/)
 * Hi, guys, let’s say I have a list or maybe a few divisions and I want to randomize
   the order in which they appear so that sometimes they’re ordered orginally like#
   1, #2, #3 and other times they’re ordered like #3, #1, #2.
 * Does anyone know how to do this?

Viewing 1 replies (of 1 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-shuffle-elements/#post-6012101)
 * That would depend on how they are stored and displayed in the first place.
 * How are the elements or items stored? Is it an array, object or something else?
 * How are they dipslayed? Is it using a loop (`where()` or `for()`)?

Viewing 1 replies (of 1 total)

The topic ‘How do I shuffle elements?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-shuffle-elements/#post-6012101)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
