Nuke binary plugins 15.0.5
 
Loading...
Searching...
No Matches
DD::Image::Random Class Reference

A random number generator for the use of ParticleOps. More...

#include <ParticleOp.h>

Public Member Functions

 Random (int seed)
 
void setSeed (int seed)
 
unsigned int random ()
 
unsigned int random (unsigned int n)
 Return a random number in the range 0..n-1.
 
float randomU ()
 Return a random number in the range 0..1.
 
float randomS ()
 Return a random number in the range -1..1.
 
float randomAngle360 ()
 Return a random angle in the range 0..2pi.
 
float randomGaussian ()
 Return a vaguely Gaussian distributed random number.
 
float randomSpread (float value, float spread)
 Return a number with a vaguely Gaussian spread around "value".
 
Vector3 randomVector ()
 Return a random vector.
 
Vector3 randomUnitVector ()
 Return a random unit vector.
 
Vector3 randomUnitVectorXY ()
 Return a random vector in the XY plane.
 

Detailed Description

A random number generator for the use of ParticleOps.



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com