Daily Archives: August 28, 2015
UE4 shuffle array by RandomStream (C++)
I was doing a blueprint room script that would randomly spawn objects in the room. One thing led to another and I needed a way to shuffle an array of spawn points for room objects randomly (preferably in blueprints), but with a specified random seed, so that I could easily find a random order that I wanted to use and stick with it. Unreal Engine 4 has a built-in array shuffle function exposed to blueprints and randomness by seed with […]
UE4 shuffle array by RandomStream (C++)
I was doing a blueprint room script that would randomly spawn objects in the room. One thing led to another and I needed a way to shuffle an array of spawn points for room objects randomly (preferably in blueprints), but with a specified random seed, so that I could easily find a random order that I wanted to use and stick with it. Unreal Engine 4 has a built-in array shuffle function exposed to blueprints and randomness by seed with […]