Public Member Functions

base::Random Class Reference

A class that generates random numbers. More...

#include <libppbase/base/Random.h>

List of all members.

Public Member Functions

 Random ()
 Constructor.
unsigned get (unsigned min, unsigned max)
 Gets a random number.
String getString (size_t len)
 Gets a random string consisting of characters 0-9, a-z and A-Z.

Detailed Description

A class that generates random numbers.

Author:
Christoph Schwarz
Version:
$Id: Random.h 21 2010-09-05 04:18:17Z cschwarz1 $

Member Function Documentation

unsigned base::Random::get ( unsigned  min,
unsigned  max 
)

Gets a random number.

Parameters:
min minimum value (inclusive)
max maximum value (exclusive)
Returns:
the new random number from the interval min (inclusive) to max (exclusive)
String base::Random::getString ( size_t  len  ) 

Gets a random string consisting of characters 0-9, a-z and A-Z.

Parameters:
len lenght of the random string
Returns:
the random string

The documentation for this class was generated from the following file: