# Randomly pick one variable

**URL:** https://discourse.processing.org/t/randomly-pick-one-variable/21304
**Category:** Beginners
**Created:** [May 26, 2020, 4:58am UTC](https://discourse.processing.org/t/randomly-pick-one-variable/21304 "2020-05-26T04:58:05Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Adi](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@Adi](https://discourse.processing.org/u/Adi)
#### Post date: [May 26, 2020, 4:58am UTC](https://discourse.processing.org/t/randomly-pick-one-variable/21304/1 "2020-05-26T04:58:06Z")

</div>

Is there a way to randomly pick between two values. For example, randomly pick `a` or `b`, not anything in between, and if possible, do this when a = -1 and b = 1?

---

_[View the full topic](https://discourse.processing.org/t/randomly-pick-one-variable/21304)._
