C++ Project 2016-2017: Arkanoid
Public Member Functions | Static Public Member Functions | List of all members
arkanoid::Random Class Reference

Singleton: generates "random" numbers. More...

#include <random.h>

Public Member Functions

double randomDouble (int from, int to)
 

Static Public Member Functions

static RandomgetInstance ()
 

Detailed Description

Singleton: generates "random" numbers.

Definition at line 14 of file random.h.

Member Function Documentation

◆ getInstance()

Random * arkanoid::Random::getInstance ( )
static

Get an instance of the Random object.

Returns
An instance of the Random object.

Definition at line 20 of file random.cpp.

◆ randomDouble()

double arkanoid::Random::randomDouble ( int  from,
int  to 
)

Generates a "random" double between a given range.

Parameters
fromThe lowest value of the range.
toThe highest value of the range.
Returns
The "random" double.

Definition at line 28 of file random.cpp.


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