Shuffle an array
Options
![Ankit Buddhiraju-1944130](https://us.v-cdn.net/6037124/user_avatars/1944130.jpg)
Ankit Buddhiraju-1944130
Member ✭
I've been writing lots of functions in Xano. One thing I couldn't figure out how to do (easily) was shuffle an array of items. I saw that there's a rand() utility function, and technically I could hack together a shuffle_array method, but I was wondering if there's something out of the box for this.
Comments
-
Good idea. We can add a filter for this. If you can wait, it will be in the next build - which may be Wednesday or Friday depending on how the week progresses.
-
Awesome, thanks!
-
this is now deployed. In the filters you should see a new "shuffle" entry.
-
Thanks, will check it out today!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback