# \[Feature Request\] Random Select Node

**URL:** <https://forums.unrealengine.com/t/feature-request-random-select-node/384297>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, UE4, Blueprint, question\
**Created:** [February 8, 2017, 3:45pm UTC](https://forums.unrealengine.com/t/feature-request-random-select-node/384297 "2017-02-08T15:45:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AustinFnFordham](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AustinFnFordham](https://forums.unrealengine.com/u/AustinFnFordham)\
**Post date:** [February 8, 2017, 3:45pm UTC](https://forums.unrealengine.com/t/feature-request-random-select-node/384297/1 "2017-02-08T15:45:32Z")

</div>

Using enumerations is huge for archiving data in a simple, yet usable manor. The only problem is if you would like to conveniently randomize the way that the data comes out.

Personally i think it would be neat to have a ‘Random Select’ node in blueprints that rolls the dice and picks from the index for you.

---

<div class="post-metadata">

**Author:** ![MonsOlympus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monsolympus/32/619062_2.png) [@MonsOlympus](https://forums.unrealengine.com/u/MonsOlympus)\
**Post date:** [February 8, 2017, 5:34pm UTC](https://forums.unrealengine.com/t/feature-request-random-select-node/384297/2 "2017-02-08T17:34:06Z")

</div>

Like this?

![125418-randselect.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/d/d6d1bb457ee3ec32f6ed524bb670cb6e18dd2649.jpeg)

---

<div class="post-metadata">

**Author:** ![AustinFnFordham](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AustinFnFordham](https://forums.unrealengine.com/u/AustinFnFordham)\
**Post date:** [February 8, 2017, 7:01pm UTC](https://forums.unrealengine.com/t/feature-request-random-select-node/384297/3 "2017-02-08T19:01:39Z")

</div>

Well then, I wasn’t aware that possible. And honestly thinking about it that makes more sense.  
Thanks! Though I’ll admit feel a little dumb. XD

---

<div class="post-metadata">

**Author:** ![RodericDarkwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RodericDarkwell](https://forums.unrealengine.com/u/RodericDarkwell)\
**Post date:** [April 13, 2024, 3:18am UTC](https://forums.unrealengine.com/t/feature-request-random-select-node/384297/4 "2024-04-13T03:18:29Z")

</div>

what if I want the random options to be after? is there a node for that?

---

<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:** [April 13, 2024, 7:14am UTC](https://forums.unrealengine.com/t/feature-request-random-select-node/384297/5 "2024-04-13T07:14:13Z")

</div>

What does “after” mean here? Switch on random int?

---

<div class="post-metadata">

**Author:** ![RodericDarkwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RodericDarkwell](https://forums.unrealengine.com/u/RodericDarkwell)\
**Post date:** [April 13, 2024, 8:27pm UTC](https://forums.unrealengine.com/t/feature-request-random-select-node/384297/6 "2024-04-13T20:27:21Z")

</div>

liek instead of the select being on the left to be on the right, and btw if anyone can tell me I woudl really apreciate it. How do I know what values I should put in the random integer in range?

---

<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:** [April 13, 2024, 9:37pm UTC](https://forums.unrealengine.com/t/feature-request-random-select-node/384297/7 "2024-04-13T21:37:51Z")

</div>

> [@RodericDarkwell](#):
>
> liek instead of the select being on the left to be on the right

It is already on the right here.

> [@RodericDarkwell](#):
>
> How do I know what values I should put in the random integer in range?

It’s utterly up to you - the range of values you wish to randomise.

---

<div class="post-metadata">

**Author:** ![BIGTIMEMASTER](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bigtimemaster/32/710746_2.png) [@BIGTIMEMASTER](https://forums.unrealengine.com/u/BIGTIMEMASTER)\
**Post date:** [April 14, 2024, 12:13am UTC](https://forums.unrealengine.com/t/feature-request-random-select-node/384297/8 "2024-04-14T00:13:53Z")

</div>

i think what they mean is that the amount of enums are a variable.

therefore the range should match the number of enums.

not sure if a for each node exist for enums or not, but if it does that could be a way. Or if you can put them into an array then use a random node.

edit: looks like there is a for each loop for enums  
[ForEach over Enums - Programming & Scripting / C++ - Epic Developer Community Forums (unrealengine.com)](https://forums.unrealengine.com/t/foreach-over-enums/475306)  
so you can use a random bool to break out of the loop with an enum. But that leaves a case where none were selected you have to handle. There’s a few ways you could do it but won’t be too hard.
