# Procedural Randomization

**URL:** <https://forums.unrealengine.com/t/procedural-randomization/230071>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [May 19, 2021, 1:43pm UTC](https://forums.unrealengine.com/t/procedural-randomization/230071 "2021-05-19T13:43:57Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 25, 2021, 6:09pm UTC](https://forums.unrealengine.com/t/procedural-randomization/230071/26 "2021-05-25T18:09:30Z")

</div>

Sure, a dynamic material would work well:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/2/b250ea9d1afb5b80c7cf181acddd8c441e4fe8c3.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/7/076e4bceab3a3245c48ef1fa5ae286394d979d54.jpeg)

You could feed DMI (Dynamic Material Instance) a texture param. Colour would be a vector parameter.

* * *

There’s probably a dozen ways to organise it. Here’s an example with Custom Primitive Data, if colours is all you need, this is crazy efficient:

> [@How to add a hit count (health points) to individual instances?](https://forums.unrealengine.com/t/how-to-add-a-hit-count-health-points-to-individual-instances/227176/2):
>
> The name of the game is Custom Primitive Data (check docs at the bottom). The material for a brick: each instance stores a float which is used to Lerp between 2 colours (to visualise hits remaining) this can (and probably should) get prettified Making a brick wall: create a bunch of instances and store their data in an int | int Map instead of an integer, you could have a struct and hold all kind of data here; perhaps this brick is worth some coins, or explodes when destroyed and …

Although you’ll probably find better examples on YT.

---

_[View the full topic](https://forums.unrealengine.com/t/procedural-randomization/230071)._
