\section{uniform\_\-generator$<$ T $>$ Class Template Reference}
\label{classuniform__generator}\index{uniform_generator@{uniform\_\-generator}}
The class uniform\_\-generator can be used in the STL generate function to easily generate random floats and doubles either in [0, \_\-max) if only 1 value (\_\-max) is given (or none, as \_\-max defaults to 1.0) or in [\_\-min,\_\-max) if 2 values are given (\_\-min, \_\-max).  


{\tt \#include $<$rnd\_\-generators.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf uniform\_\-generator} (T \_\-max=T(1.0), {\bf eo\-Rng} \&\_\-rng=rng)\label{classuniform__generator_a0}

\item 
{\bf uniform\_\-generator} (T \_\-min, T \_\-max, {\bf eo\-Rng} \&\_\-rng=rng)\label{classuniform__generator_a1}

\item 
T {\bf operator()} (void)\label{classuniform__generator_a2}

\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
T {\bf minim}\label{classuniform__generator_r0}

\item 
T {\bf range}\label{classuniform__generator_r1}

\item 
{\bf eo\-Rng} \& {\bf uniform}\label{classuniform__generator_r2}

\end{CompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class T = double$>$ class uniform\_\-generator$<$ T $>$}

The class uniform\_\-generator can be used in the STL generate function to easily generate random floats and doubles either in [0, \_\-max) if only 1 value (\_\-max) is given (or none, as \_\-max defaults to 1.0) or in [\_\-min,\_\-max) if 2 values are given (\_\-min, \_\-max). 



Definition at line 44 of file rnd\_\-generators.h.

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
rnd\_\-generators.h\end{CompactItemize}
