How to Spawn actor in random Y location

You have some things to change there:

  1. Random float in range, from and to are the same, so it will be always 5.

  2. 5 is actually a very small value for a location (it is almost 5 cms I think), try to spawn your actor in editor, then move it +5 in any axis, you probably will note no difference at all. try something bigger, like -500 to 500.

  3. Collision handling override, be sure is set to “Always spawn, ignore collision”

  4. TransformLocation method I think is used to change from local space to world space, use “PLUS” instead, otherwise will spawn in 0-0-0 of the map.