# Reversing Random Distribution

**URL:** <https://discourse.processing.org/t/reversing-random-distribution/17427>\
**Category:** Coding Questions\
**Created:** [January 29, 2020, 7:22pm UTC](https://discourse.processing.org/t/reversing-random-distribution/17427 "2020-01-29T19:22:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [February 20, 2020, 7:20pm UTC](https://discourse.processing.org/t/reversing-random-distribution/17427/3 "2020-02-20T19:20:04Z")

</div>

@PhilRandom – I hope that you were able to resolve your issue.

If you are trying to reverse a process that descends so that it ascends, you may be interested in this recent discussion – and in looking at the examples of bouncing balls.

> [@Variable must change from 3.67 to 3.15](https://discourse.processing.org/t/variable-must-change-from-3-67-to-3-15/17929):
>
> Hi there! I need my variable i to go from 3.67 to 3.15 to 3.67 to 3.15 to 3.67 and so on. I’m able to do this just fine from 3.67 to 3.15, however I can’t manage to let it go back to 3.67. This is the code i’m using right now: if (i \> 3.16) { i = i / 1.001 } if(i \> 3.67) { i = i \* 1.001 } I understand why it’s not working, but I dont know how to fix it. confused pls help

---

_[View the full topic](https://discourse.processing.org/t/reversing-random-distribution/17427)._
