Getting different random numbers

Hi there,

I’m trying to get 2 different random integer numbers in range (lets say from 1 to 5) on event begin play.

For example, once the game starts, I want to spawn 2 pick ups at 5 different locations.
I have the 5 locations stored in an array. 2 of the 5 locations are to be chosen randomly and they can not be the same.

Whats the best way to do it?

I’m new to BP and scripting in general, so please provide easy to understand instructions.

Thank you.

Simple, Look for Random Integer In Range Nodes in Context Menu. Then, with some loop logic store it in your array using add unique node.