# Create a random image wall

**URL:** https://discourse.processing.org/t/create-a-random-image-wall/11992
**Category:** Project Guidance
**Created:** [June 11, 2019, 5:14pm UTC](https://discourse.processing.org/t/create-a-random-image-wall/11992 "2019-06-11T17:14:01Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![OptOut](https://avatars.discourse-cdn.com/v4/letter/o/cc9497/32.png) [@OptOut](https://discourse.processing.org/u/OptOut)
#### Post date: [June 15, 2019, 6:03pm UTC](https://discourse.processing.org/t/create-a-random-image-wall/11992/4 "2019-06-15T18:03:36Z")

</div>

Hey Jeremy,

Thanks for taking the time to reply.

The project has moved on a bit since I posted last week. I started another thread\* with more up to date issues here:

> [@Avoid 'clunky' sketch/framerate](https://discourse.processing.org/t/avoid-clunky-sketch-framerate/12041/5):
>
> You should take a look at the [documentation](https://processing.org/reference/HashMap.html) on maps. In this case, I would suggest having the number in your filename as the key, and the actual PImage object as the value. So in draw(), you can simply get the image from the map (using .get(ranNum)) instead of calling loadImage() multiple times. You won’t be stuck with the same random selection as long as you keep the random number generator code in your draw() function. You’re really only changing the loadImage() part. As a side note, since y…

\*Hope that’s ok with mods and I’m not double posting?

---

_[View the full topic](https://discourse.processing.org/t/create-a-random-image-wall/11992)._
