Override rand() function.
So, if you dig deep enough, you can discover that ue4 uses the std::rand() function to get random numbers. For the project we're doing, we rely heavily on random values and we don't like using the std::rand(), it's not "random" enough for what we want.
We've defined our own random generator and it works just fine. We can use it for all of our own stuff, but the engine still uses the std::rand() function. Is there a way to override it, to force everything in the engine to use our own custom random function, or is this just a pipe dream?
asked Dec 02 '16 at 05:24 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here