Random numbers aren't random in the construction script

I am trying to randomize some material parameters and mesh components inside my BP Actor class and every instance of my class always get the same sequence of random numbers! Float, integer, array shuffle… it doesn’t matter. All instances get the same result, every time. I can only get different random numbers on the event graph.

This is on 4.5.1 BTW.

Hey Pedro_clericuzzi-

The construction script is only ran when the actor is first place or when it is moved within the level. Any actions preformed in the construction script only update at these times. If you move your actor and play in editor, you will find that the random number updates. For the behavior you’re asking for you will need to get a new random number in the event graph each time the number is needed rather than having the number tied to the generation of the actor.

Cheers

Doug Wilson