# \[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:** 1\
**Showing post:** 8

<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.

---

_[View the full topic](https://forums.unrealengine.com/t/feature-request-random-select-node/384297)._
