randomUtils Namespace Reference


Functions

double randomDouble ()
int randomInt (const int x, const int y)
unsigned int randomInt (const unsigned int x, const unsigned int y)


Detailed Description

Utilities for use with the standard RNG


Function Documentation

double randomUtils::randomDouble (  ) 

Copyright (C) 2007 A.N. Yzelman Released under LGPL, see license.txt

Last modified at 12th of April, 2007, by A.N. Yzelman

randomUtils.cpp: Implementation of randomUtils.h

Definition at line 13 of file randomUtils.cpp.

Referenced by randomInt().

unsigned int randomUtils::randomInt ( const unsigned int  x,
const unsigned int  y 
)

Gets a random integer in between [x,y); y excluded.

Returns:
An integer in [x,y)

Definition at line 24 of file randomUtils.cpp.

References randomDouble().

int randomUtils::randomInt ( const int  x,
const int  y 
)

Gets a random integer in between [x,y); y excluded.

Returns:
An integer in [x,y)

Definition at line 17 of file randomUtils.cpp.

References randomDouble().

Referenced by Ordering< Cubic_Bounding_Box >::quicksort().


Generated on Sat Oct 13 17:34:43 2007 for R-Tree by  doxygen 1.5.2