pfuRandom(3pf) OpenGL Performer 3.2.2 libpfutil Reference Pages
NAME
pfuRandomize, pfuRandomLong, pfuRandomFloat, pfuRandomColor - Set up and
generate random numbers and colors.
FUNCTION SPECIFICATION
#include <Performer/pfutil.h>
void pfuRandomize(int seed);
long pfuRandomLong(void);
float pfuRandomFloat(void);
void pfuRandomColor(pfVec4 color, float minColor, float maxColor);
DESCRIPTION
These functions set up a random number generator and use it to return
uniformly distributed random numbers and colors.
pfuRandomize initializes the random number generator with seed.
pfuRandomLong returns a random number of type long while pfuRandomFloat
returns a random number of type float.
pfuRandomColor returns a random color in color. The r, g and b values of
color are random numbers in the range [minColor, maxColor]. The alpha
value of color is set to the fully opaque value 1.
See the srandom and random man pages for further information on the
random number generator used.
SEE ALSO
random, srandom
Page 1