# Color Shuffle with hex color codes

**URL:** <https://discourse.processing.org/t/color-shuffle-with-hex-color-codes/1191>\
**Category:** Coding Questions\
**Created:** [June 23, 2018, 11:15pm UTC](https://discourse.processing.org/t/color-shuffle-with-hex-color-codes/1191 "2018-06-23T23:15:30Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 24, 2018, 12:23am UTC](https://discourse.processing.org/t/color-shuffle-with-hex-color-codes/1191/11 "2018-06-24T00:23:35Z")

</div>

> [@deanomite](#):
>
> If there’s a better way, …

The better & more performant way is to rely on IntList instead, as I had already linked to at my 1st reply: 😉

> **[IntList / Reference](https://processing.org/reference/IntList.html)**
>
> Helper class for a list of int values. Lists are designed to have some features of ArrayList, but to maintain the simplicity and efficiency of working with arrays. Functions such as s…

You’ll have access to better methods, such as **shuffle()** & **array()**: 💪

1. [shuffle() / Reference / Processing.org](https://Processing.org/reference/IntList_shuffle_.html)
2. [array() / Reference / Processing.org](https://Processing.org/reference/IntList_array_.html)

---

_[View the full topic](https://discourse.processing.org/t/color-shuffle-with-hex-color-codes/1191)._
