XBDEV Forum
Casual Relaxed Discussions. Code will get you talking!

Home » General » Programming » Randomise order items in an array? (JavaScript - make the order of items random? )
Randomise order items in an array? [message #5] Thu, 15 September 2022 05:03
Pickle is currently offline  Pickle
Messages: 4
Registered: September 2022
Junior Member
Is there a simple and easy way of 'shuffling' the order of items in an array?

Instead of going 1, 2, 3, 4, 5.... you can shuffle the order, 2, 5, 1, 3, ..

Thanks

Pickle
 
Read Message
Previous Topic: Sanity checks!
Goto Forum:
  


Current Time: Sat Dec 06 13:21:21 PST 2025

Total time taken to generate the page: 0.03352 seconds