# Fill function in an array of objects

**URL:** https://discourse.processing.org/t/fill-function-in-an-array-of-objects/15925
**Category:** Coding Questions
**Created:** [November 28, 2019, 9:38pm UTC](https://discourse.processing.org/t/fill-function-in-an-array-of-objects/15925 "2019-11-28T21:38:17Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [November 29, 2019, 12:02am UTC](https://discourse.processing.org/t/fill-function-in-an-array-of-objects/15925/3 "2019-11-29T00:02:40Z")

</div>

> [@Kasdal](#):
>
> just creates a flashing disco.

Yeah, use random but store it in the constructor so it doesn’t change.

---

_[View the full topic](https://discourse.processing.org/t/fill-function-in-an-array-of-objects/15925)._
