# Random point in masked box?

**URL:** <https://forums.unrealengine.com/t/random-point-in-masked-box/474304>\
**Category:** Blueprint\
**Tags:** random, box-collision, unreal-engine, Blueprint, question\
**Created:** [November 11, 2020, 2:20pm UTC](https://forums.unrealengine.com/t/random-point-in-masked-box/474304 "2020-11-11T14:20:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iamlazar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Iamlazar](https://forums.unrealengine.com/u/Iamlazar)\
**Post date:** [November 11, 2020, 2:20pm UTC](https://forums.unrealengine.com/t/random-point-in-masked-box/474304/1 "2020-11-11T14:20:19Z")

</div>

Hey everyone,  
I am sorry to ask for help but I am learning UE4 and I can’t figure out the following question.

Is it possible to get a random x,y,z or at least x,y for a masked box, eg. all points in range x[-100:100], y[-100:100] but not in x[-50:-50], y[-50:50] ?

I have avoided the issue by fixing stuff onto a circle around another point, but I’d like to use more space 🙂

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 11, 2020, 2:52pm UTC](https://forums.unrealengine.com/t/random-point-in-masked-box/474304/2 "2020-11-11T14:52:08Z")

</div>

Like this:

 ![321704-screenshot-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/7/187519017fd8e42cb875d9720b1765890b96f1e6.jpeg)

 ![321705-screenshot-4.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/a/43a06f78be844e528d09fd39eee1c262592e5e10.jpeg)

 ![321713-screenshot-5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/3/873b932c1279b989344c7bd003bea2fc39b4360c.jpeg)

---

<div class="post-metadata">

**Author:** ![Iamlazar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Iamlazar](https://forums.unrealengine.com/u/Iamlazar)\
**Post date:** [November 11, 2020, 7:05pm UTC](https://forums.unrealengine.com/t/random-point-in-masked-box/474304/3 "2020-11-11T19:05:11Z")

</div>

Great! This work fine! Thanks a lot!
