# Randomise

**URL:** <https://forum.electra.one/t/randomise/602>\
**Category:** Ideas / Feature requests\
**Created:** [April 27, 2021, 7:46pm UTC](https://forum.electra.one/t/randomise/602 "2021-04-27T19:46:28Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![oldgearguy](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Post date:** [November 17, 2021, 9:41pm UTC](https://forum.electra.one/t/randomise/602/21 "2021-11-17T21:41:14Z")

</div>

One question - the functions that get attached to controls have ValueObject and value passed in as parameters. What was the thought behind ValueObject and can these be replaced/overridden?

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [November 17, 2021, 10:01pm UTC](https://forum.electra.one/t/randomise/602/22 "2021-11-17T22:01:36Z")

</div>

The `function` is actually bound to the `ValueObject` not the control itself. The majority of controls have just one value (and therefore just one `ValueObject`), but, for example envelopes have more of them.

The idea of values, in general, was to allow creating controls with more values, like XY pads, envelopes, etc. Passing the `ValueObject` as the parameter was meant to provide the details about (`min`, `max`, etc) to the function when it gets called.

[Previous page](https://forum.electra.one/t/randomise/602.md?page=1)
