# Random functionality with SVG PShapes

**URL:** <https://discourse.processing.org/t/random-functionality-with-svg-pshapes/35950>\
**Category:** Coding Questions\
**Created:** [March 26, 2022, 10:09am UTC](https://discourse.processing.org/t/random-functionality-with-svg-pshapes/35950 "2022-03-26T10:09:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrGrizzler](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@MrGrizzler](https://discourse.processing.org/u/MrGrizzler)\
**Post date:** [March 26, 2022, 10:09am UTC](https://discourse.processing.org/t/random-functionality-with-svg-pshapes/35950/1 "2022-03-26T10:09:09Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

Hi all, I’m trying to import multiple SVG objects and display these at random locations, random scales, also using random colours from a defined colour pool. While defining a minimum & maximum number of each object.  
Is this at all possible? Any thoughts on how I could code this?

Thank you!  
Chris

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [March 26, 2022, 11:43am UTC](https://discourse.processing.org/t/random-functionality-with-svg-pshapes/35950/2 "2022-03-26T11:43:48Z")

</div>

Hello @MrGrizzler,

Resources (tutorials, references, examples, etc. ) are here:  
[https://processing.org/](https://processing.org/)

One example:

> **[Load and Display a Shape Illustration / Examples](https://processing.org/examples/loaddisplaysvg.html)**
>
> The loadShape() command is used to read simple SVG (Scalable Vector Graphics) files and OBJ (Object) files into a Processing sketch. This example loads an SVG file of a monster robot face and displays…

Examples are also available with the Processing IDE:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/5fd8435ec2ae07af41655cb8098443dbc949614a.png)

`:)`
