Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Random.h File Reference
#include "Types.h"
#include "Geometry.h"

Go to the source code of this file.

Functions

void RandomInit ()
Point RandomDirection ()
Point RandomPoint ()
Vec3 RandomVector (double radius)
double Random (double min=0, double max=1)
int RandomIndex ()
bool RandomChance (int wins=1, int tries=2)
int RandomSequence (int current, int range)
int RandomShuffle (int count)

Function Documentation

double Random ( double  min = 0,
double  max = 1 
)

Definition at line 61 of file Random.cpp.

bool RandomChance ( int  wins = 1,
int  tries = 2 
)

Definition at line 84 of file Random.cpp.

Point RandomDirection ( )

Definition at line 27 of file Random.cpp.

int RandomIndex ( )

Definition at line 71 of file Random.cpp.

void RandomInit ( )

Definition at line 20 of file Random.cpp.

Point RandomPoint ( )

Definition at line 36 of file Random.cpp.

int RandomSequence ( int  current,
int  range 
)

Definition at line 94 of file Random.cpp.

int RandomShuffle ( int  count)

Definition at line 106 of file Random.cpp.

Vec3 RandomVector ( double  radius)

Definition at line 46 of file Random.cpp.