@Momo
Hi. The particle system call this function at GetRandomVector3(ParticleSystem::Shape shape).
I replace
int rng = Random::Range(0, 4);
with
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<> distr(0, 4);
int rng = distr(gen);
then works fine.
So maybe the function range() should be fixed.
@Momo Hi. The particle system call this function at GetRandomVector3(ParticleSystem::Shape shape).
I replace int rng = Random::Range(0, 4); with std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution<> distr(0, 4); int rng = distr(gen); then works fine. So maybe the function range() should be fixed.