class

ParticleRandom

Random number generator utilities for particle emission

Module
Particles
Header
#include "Particles/ParticlePool.h"
Namespace
Mowo

Constructors

SignatureNameDescription
ParticleRandom() : m_gen(FRandomStream::SeedForInstance("Particles"))ParticleRandomPer instance, so two emitters side by side do not spawn in lockstep, yet reproducible under --seed — entropy here made every capture of a particle scene, and every editor thumbnail, differ from the last.
explicit ParticleRandom(uint32_t seed) : m_gen(seed)ParticleRandom

Public functions

ReturnsNameDescription
floatFloat01Random float in [0, 1]
floatRangeRandom float in [min, max]
Vec3InsideUnitSphereRandom Vec3 in unit sphere
Vec3OnUnitSphereRandom Vec3 on unit sphere surface
Vec2InsideUnitCircleRandom Vec2 in unit circle
Vec3InsideConeRandom direction within cone (angle in radians from forward direction)
voidSetSeed

Function details

ParticleRandom

C++
ParticleRandom() : m_gen(FRandomStream::SeedForInstance("Particles"))

Per instance, so two emitters side by side do not spawn in lockstep, yet reproducible under --seed — entropy here made every capture of a particle scene, and every editor thumbnail, differ from the last.

ParticleRandom

C++
explicit ParticleRandom(uint32_t seed) : m_gen(seed)

Float01

C++
float Float01()

Random float in [0, 1]

Range

C++
float Range(float min, float max)

Random float in [min, max]

InsideUnitSphere

C++
Vec3 InsideUnitSphere()

Random Vec3 in unit sphere

OnUnitSphere

C++
Vec3 OnUnitSphere()

Random Vec3 on unit sphere surface

InsideUnitCircle

C++
Vec2 InsideUnitCircle()

Random Vec2 in unit circle

InsideCone

C++
Vec3 InsideCone(float halfAngle)

Random direction within cone (angle in radians from forward direction)

SetSeed

C++
void SetSeed(uint32_t seed)
Generated from Particles/ParticlePool.h via particles.json · Oct 31, 2026Version 1.0.0