class
ParticleRandom
Random number generator utilities for particle emission
- Module
- Particles
- Header
#include "Particles/ParticlePool.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
ParticleRandom() : m_gen(FRandomStream::SeedForInstance("Particles")) | ParticleRandom | 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. |
explicit ParticleRandom(uint32_t seed) : m_gen(seed) | ParticleRandom |
Public functions
| Returns | Name | Description |
|---|---|---|
float | Float01 | Random float in [0, 1] |
float | Range | Random float in [min, max] |
Vec3 | InsideUnitSphere | Random Vec3 in unit sphere |
Vec3 | OnUnitSphere | Random Vec3 on unit sphere surface |
Vec2 | InsideUnitCircle | Random Vec2 in unit circle |
Vec3 | InsideCone | Random direction within cone (angle in radians from forward direction) |
void | SetSeed |
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