# How to pick random component inside an actor (With blueprint)

**URL:** <https://forums.unrealengine.com/t/how-to-pick-random-component-inside-an-actor-with-blueprint/2475532>\
**Category:** Blueprint\
**Tags:** beginner, unreal-engine, question, Blueprint\
**Created:** [April 25, 2025, 12:14pm UTC](https://forums.unrealengine.com/t/how-to-pick-random-component-inside-an-actor-with-blueprint/2475532 "2025-04-25T12:14:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnknownDinoDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnknownDinoDev](https://forums.unrealengine.com/u/UnknownDinoDev)\
**Post date:** [April 25, 2025, 12:14pm UTC](https://forums.unrealengine.com/t/how-to-pick-random-component-inside-an-actor-with-blueprint/2475532/1 "2025-04-25T12:14:44Z")

</div>

I have an actor with 4 arrow components.  
…

 ![components](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/3/56367816926a70f08884fb278434700ffd5a344e.jpeg)

I would like to choose one of the Arrows (Spawn Points\_1\_2\_3\_4) at random and get their location.  
Basically I need to spawn a projectile from one of the arrows but I want to choose them at random.

What would be some ways to achieve this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [April 25, 2025, 12:51pm UTC](https://forums.unrealengine.com/t/how-to-pick-random-component-inside-an-actor-with-blueprint/2475532/2 "2025-04-25T12:51:55Z")

</div>

- Make an arrow component array
- Add these components to array
- Get a random integer in range node with 0 3
- From the Array variable get a ref with that random integer

---

<div class="post-metadata">

**Author:** ![UnknownDinoDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnknownDinoDev](https://forums.unrealengine.com/u/UnknownDinoDev)\
**Post date:** [April 25, 2025, 1:20pm UTC](https://forums.unrealengine.com/t/how-to-pick-random-component-inside-an-actor-with-blueprint/2475532/3 "2025-04-25T13:20:30Z")

</div>

Thanks!  
For other beginners who can’t figure it out  
(this is how it looks in bp)

 ![Solved](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/4/024448a581ed417e60f63847d082af9c94923d7e.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 25, 2025, 1:20pm UTC](https://forums.unrealengine.com/t/how-to-pick-random-component-inside-an-actor-with-blueprint/2475532/4 "2025-05-25T13:20:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
