# Randomizing arrays

**URL:** <https://forum.kirupa.com/t/randomizing-arrays/287503>\
**Category:** Uncategorized\
**Created:** [May 2, 2009, 11:35am UTC](https://forum.kirupa.com/t/randomizing-arrays/287503 "2009-05-02T11:35:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![werehunt](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@werehunt](https://forum.kirupa.com/u/werehunt)\
**Post date:** [May 2, 2009, 11:35am UTC](https://forum.kirupa.com/t/randomizing-arrays/287503/1 "2009-05-02T11:35:48Z")

</div>

lets say I have 2 arrays: one contains objects and another their x and y positions.

so if randomise the content of the first array, how could I apply the same randomization to the other array?

(so that I dont loose correlation)
