# Random Function: multiple nodes

**URL:** <https://forums.unrealengine.com/t/random-function-multiple-nodes/1647530>\
**Category:** Blueprint\
**Tags:** random-numbers, unreal-engine, question, Blueprint\
**Created:** [January 27, 2024, 9:18pm UTC](https://forums.unrealengine.com/t/random-function-multiple-nodes/1647530 "2024-01-27T21:18:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiloSolutions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiloSolutions](https://forums.unrealengine.com/u/MiloSolutions)\
**Post date:** [January 27, 2024, 9:18pm UTC](https://forums.unrealengine.com/t/random-function-multiple-nodes/1647530/1 "2024-01-27T21:18:06Z")

</div>

![Screenshot 2024-01-27 221104](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/7/ba7449465bad89098ab8c5ac8df08bfd46e20b19.png)  
So apparently not only this two are the same but each pin will return a different random number. Am i correct? I cant put my finger on it, i expected to get the same number at least in the second one, Am i forced to use a local variable of sort?

---

<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:** [January 27, 2024, 10:38pm UTC](https://forums.unrealengine.com/t/random-function-multiple-nodes/1647530/2 "2024-01-27T22:38:45Z")

</div>

There’s no difference between the two. The reroutes are purely cosmetic.

Every time you connect a pure function to a node with an execution pin, it will evaluate.

Aye, use a variable to cache the result first, only then use the var multiple times.

---

<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:** [February 26, 2024, 10:38pm UTC](https://forums.unrealengine.com/t/random-function-multiple-nodes/1647530/3 "2024-02-26T22:38:49Z")

</div>

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