Shuffle an array based on a seed value?

Title says it all. Any way to shuffle an array using a seed value to make it deterministic? Thanks in advance!

A node for exactly that already exists- it’s called “Shuffle From Stream”

1 Like

Amazing, thank you! I needed the c++ function, but this put me on the right path!

Ah- I didn’t notice the C++ label.
For anyone coming along needing it, it’s in UKismetArrayLibrary. Here’s the signature:

void UKismetArrayLibrary::GenericArray_ShuffleFromStream(void* TargetArray, const FArrayProperty* ArrayProp, FRandomStream* RandomStream)

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