# Randomize array

**URL:** <https://forum.kirupa.com/t/randomize-array/249139>\
**Category:** Uncategorized\
**Created:** [January 15, 2008, 7:44pm UTC](https://forum.kirupa.com/t/randomize-array/249139 "2008-01-15T19:44:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Post date:** [January 15, 2008, 7:44pm UTC](https://forum.kirupa.com/t/randomize-array/249139/1 "2008-01-15T19:44:25Z")

</div>

how can you randomize the results of an array in a for loop?

I am loading data in via xml and when doing a for loop to iterate through instead of showing 0, 1, 2, 3, 4 ect… how can i randomize for \* ? If i do it in the for loop it keeps doing the randomizing and gets stuck and if after things are already loaded. how is it done?
