\hypertarget{a01099}{\section{Open\+Mesh\+:\+:Random\+Number\+Generator Class Reference}
\label{a01099}\index{Open\+Mesh\+::\+Random\+Number\+Generator@{Open\+Mesh\+::\+Random\+Number\+Generator}}
}


{\ttfamily \#include $<$libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+Utils/\+Random\+Number\+Generator.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a01099_a242cb86aad8221eac2d29e245c2c5ae2}{Random\+Number\+Generator} (const size\+\_\+t \+\_\+resolution)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a01099_a6780d2e8b0bffb3959c487a2646e8e65}{double \hyperlink{a01099_a6780d2e8b0bffb3959c487a2646e8e65}{get\+Rand} () const }\label{a01099_a6780d2e8b0bffb3959c487a2646e8e65}

\begin{DoxyCompactList}\small\item\em returns a random double between 0.\+0 and 1.\+0 with a guaranteed resolution \end{DoxyCompactList}\item 
\hypertarget{a01099_a96712ed75ec124c4a4f111970517c1a6}{double {\bfseries resolution} () const }\label{a01099_a96712ed75ec124c4a4f111970517c1a6}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01099_ab67ee010dafaf31356c5a07ff99860ab}{const size\+\_\+t \hyperlink{a01099_ab67ee010dafaf31356c5a07ff99860ab}{resolution\+\_\+}}\label{a01099_ab67ee010dafaf31356c5a07ff99860ab}

\begin{DoxyCompactList}\small\item\em desired resolution \end{DoxyCompactList}\item 
\hypertarget{a01099_a1b1fe4bc4fe436899f6994b3a3129a33}{size\+\_\+t \hyperlink{a01099_a1b1fe4bc4fe436899f6994b3a3129a33}{iterations\+\_\+}}\label{a01099_a1b1fe4bc4fe436899f6994b3a3129a33}

\begin{DoxyCompactList}\small\item\em number of \char`\"{}blocks\char`\"{} of R\+A\+N\+D\+\_\+\+M\+A\+X that make up the desired \+\_\+resolution \end{DoxyCompactList}\item 
\hypertarget{a01099_a7a3c6ec5dde94479f22085a90d6f2882}{double \hyperlink{a01099_a7a3c6ec5dde94479f22085a90d6f2882}{max\+Num\+\_\+}}\label{a01099_a7a3c6ec5dde94479f22085a90d6f2882}

\begin{DoxyCompactList}\small\item\em maximum random number generated, which is used for normalization \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Generate a random number between 0.\+0 and 1.\+0 with a guaranteed resolution ( Number of possible values )

Especially useful on windows, as there M\+A\+X\+\_\+\+R\+A\+N\+D is often only 32k which is not enough resolution for a lot of applications 

Definition at line 85 of file Random\+Number\+Generator.\+hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a01099_a242cb86aad8221eac2d29e245c2c5ae2}{\index{Open\+Mesh\+::\+Random\+Number\+Generator@{Open\+Mesh\+::\+Random\+Number\+Generator}!Random\+Number\+Generator@{Random\+Number\+Generator}}
\index{Random\+Number\+Generator@{Random\+Number\+Generator}!Open\+Mesh\+::\+Random\+Number\+Generator@{Open\+Mesh\+::\+Random\+Number\+Generator}}
\subsubsection[{Random\+Number\+Generator}]{\setlength{\rightskip}{0pt plus 5cm}Open\+Mesh\+::\+Random\+Number\+Generator\+::\+Random\+Number\+Generator (
\begin{DoxyParamCaption}
\item[{const size\+\_\+t}]{\+\_\+resolution}
\end{DoxyParamCaption}
)}}\label{a01099_a242cb86aad8221eac2d29e245c2c5ae2}


Constructor. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+resolution} & specifies the desired resolution for the random number generated \\
\hline
\end{DoxyParams}


Definition at line 72 of file Random\+Number\+Generator.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+Utils/Random\+Number\+Generator.\+hh\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+Utils/Random\+Number\+Generator.\+cc\end{DoxyCompactItemize}
