# I need help with my project (IMAGES;Y-AXIS;RANDOM)

**URL:** <https://discourse.processing.org/t/i-need-help-with-my-project-images-y-axis-random/34980>\
**Category:** Beginners\
**Tags:** homework\
**Created:** [February 4, 2022, 8:53pm UTC](https://discourse.processing.org/t/i-need-help-with-my-project-images-y-axis-random/34980 "2022-02-04T20:53:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 4, 2022, 10:55pm UTC](https://discourse.processing.org/t/i-need-help-with-my-project-images-y-axis-random/34980/2 "2022-02-04T22:55:23Z")

</div>

See [New to class and need a project - #2 by Chrisir](https://discourse.processing.org/t/new-to-class-and-need-a-project/34972/2)

Let’s say you work with a for loop to display c images

c is the upperBound of the for loop - check out the reference

c= map(mouseY, height, 0, 1, 128);

or whatever - see reference for map()

for the positions use an array with PVector and fill it in setup ()

So before setup():

PVector[] list = new PVector[128];

fill it with random positions in setup

(a random throughout would make the images jump and everything would flicker)

(lots of room for improvement, eg. size, rotation, relocation…)

---

_[View the full topic](https://discourse.processing.org/t/i-need-help-with-my-project-images-y-axis-random/34980)._
