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


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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a08908_a242cb86aad8221eac2d29e245c2c5ae2}{Random\+Number\+Generator} (const size\+\_\+t \+\_\+resolution)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08908_ab0ddf3f024f38d790596bd621c6c0ddc}\label{a08908_ab0ddf3f024f38d790596bd621c6c0ddc}} 
double \hyperlink{a08908_ab0ddf3f024f38d790596bd621c6c0ddc}{get\+Rand} () const
\begin{DoxyCompactList}\small\item\em returns a random double between 0.\+0 and 1.\+0 with a guaranteed resolution \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08908_a946d51b77e0d799415db20fc21094cf6}\label{a08908_a946d51b77e0d799415db20fc21094cf6}} 
double {\bfseries resolution} () const
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08908_ab67ee010dafaf31356c5a07ff99860ab}\label{a08908_ab67ee010dafaf31356c5a07ff99860ab}} 
const size\+\_\+t \hyperlink{a08908_ab67ee010dafaf31356c5a07ff99860ab}{resolution\+\_\+}
\begin{DoxyCompactList}\small\item\em desired resolution \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08908_a1b1fe4bc4fe436899f6994b3a3129a33}\label{a08908_a1b1fe4bc4fe436899f6994b3a3129a33}} 
size\+\_\+t \hyperlink{a08908_a1b1fe4bc4fe436899f6994b3a3129a33}{iterations\+\_\+}
\begin{DoxyCompactList}\small\item\em number of \char`\"{}blocks\char`\"{} of R\+A\+N\+D\+\_\+\+M\+AX that make up the desired \+\_\+resolution \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08908_a7a3c6ec5dde94479f22085a90d6f2882}\label{a08908_a7a3c6ec5dde94479f22085a90d6f2882}} 
double \hyperlink{a08908_a7a3c6ec5dde94479f22085a90d6f2882}{max\+Num\+\_\+}
\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\+ND is often only 32k which is not enough resolution for a lot of applications 

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



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{a08908_a242cb86aad8221eac2d29e245c2c5ae2}\label{a08908_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{\texorpdfstring{Random\+Number\+Generator()}{RandomNumberGenerator()}}
{\footnotesize\ttfamily Open\+Mesh\+::\+Random\+Number\+Generator\+::\+Random\+Number\+Generator (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{\+\_\+resolution }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}



Constructor. 


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


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



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