Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
Util Namespace Reference

Functions

string read_file_to_string (string const &filename)
 
template<typename T >
rand (T min, T max)
 

Function Documentation

T Util::rand ( min,
max 
)

Creates a random-number between (including) min and max and returns it.

Parameters
minThe lower-bound of the random number
maxThe upper-bound of the random number
Returns
The generated random number

Definition at line 30 of file Util.hpp.

string read_file_to_string ( string const &  filename)

Reads the content of a file to a string object and returns it.

Parameters
filenameThe filename of the file to be read
Returns
The string containing the file-data

Definition at line 3 of file Util.cpp.