# Random() firsts random

**URL:** https://discourse.processing.org/t/random-firsts-random/15914
**Category:** Coding Questions
**Created:** [November 28, 2019, 6:34pm UTC](https://discourse.processing.org/t/random-firsts-random/15914 "2019-11-28T18:34:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vanoevelenstef](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@vanoevelenstef](https://discourse.processing.org/u/vanoevelenstef)
#### Post date: [November 28, 2019, 6:35pm UTC](https://discourse.processing.org/t/random-firsts-random/15914/1 "2019-11-28T18:35:00Z")

</div>

I’m using 3 floats for R G B color and if I run my code. The first variable is always black and once I press the button to randomize the colors again it will change.

Can I make it that by running to program its start with standard R G B color instead of black? So I force the first random()?

---

<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 28, 2019, 6:39pm UTC](https://discourse.processing.org/t/random-firsts-random/15914/2 "2019-11-28T18:39:51Z")

</div>

When the 3 floats (should be int) are global just set them in setup () first time
