# Balls fall then loop and restart at random position

**URL:** https://discourse.processing.org/t/balls-fall-then-loop-and-restart-at-random-position/3403
**Category:** Beginners
**Tags:** homework
**Created:** [September 10, 2018, 1:57am UTC](https://discourse.processing.org/t/balls-fall-then-loop-and-restart-at-random-position/3403 "2018-09-10T01:57:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![amelia](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@amelia](https://discourse.processing.org/u/amelia)
#### Post date: [September 10, 2018, 1:57am UTC](https://discourse.processing.org/t/balls-fall-then-loop-and-restart-at-random-position/3403/1 "2018-09-10T01:57:04Z")

</div>

Hi,  
For my assignment we have to program a agame and I am strugglung, it would be really helpful if you could help me with a code for when my balls fall down for them to loop and restart at a random position  
Thanks.

---

<div class="post-metadata">

### Author: ![EnhancedLoop7](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/enhancedloop7/32/1040_2.png) [@EnhancedLoop7](https://discourse.processing.org/u/EnhancedLoop7)
#### Post date: [September 10, 2018, 2:47am UTC](https://discourse.processing.org/t/balls-fall-then-loop-and-restart-at-random-position/3403/2 "2018-09-10T02:47:14Z")

</div>

Please provide some code that you need help with 😃

We can only give you basic ideas, and guesses and assumptions unless if we see what you tried before. After that, we would all love to help out as much as we can!

EnhancedLoop7

---

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [September 10, 2018, 5:31pm UTC](https://discourse.processing.org/t/balls-fall-then-loop-and-restart-at-random-position/3403/3 "2018-09-10T17:31:21Z")

</div>

Hey Amelia,

We’d be happy to help, but please provide some more information. Also note that titles should contain a specific question, that way people know what you’re looking for.

Please read this guide on asking questions:

> [@Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-tips-on-asking-questions/2147):
>
> Summary (TL;DR) Ask complete questions to get better answers! Be specific. For example: I want to load an image. I tried using createImg() , and I expected the image to be on canvas, but what happened instead was the image showing up below the canvas. Isolate your problem and work in small steps. Share only the code directly related to your problem if it is part of a bigger project, and if something isn’t working, try the smallest code that could do the thing you want. Can we run your code to …
