Rand.h File Reference

#include <PVLE/Export.h>
#include <stdlib.h>

Include dependency graph for Rand.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PVLE_EXPORT void srand ()
 Initializes ranndom seed with current time.
float rand (float max)
 Returns a random number in [0;max[.
float rand (float min, float max)
 Returns a random number in [min;max[.


Function Documentation

float rand ( float  min,
float  max 
) [inline]

Returns a random number in [min;max[.

Definition at line 38 of file Rand.h.

References rand().

float rand ( float  max  )  [inline]

Returns a random number in [0;max[.

Definition at line 36 of file Rand.h.

Referenced by CloudParams::CloudParams(), createCloud(), rand(), CameraShakeParams::setAnglesRandom(), and CameraShake::updateCameras().

PVLE_EXPORT void srand (  ) 

Initializes ranndom seed with current time.

Definition at line 30 of file Rand.cpp.

References srand().

Referenced by srand().


Generated on Sun Jan 17 11:39:16 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9