ManaPlus
Namespaces | Functions | Variables
mrand.cpp File Reference

(986a3bf)

#include "utils/mrand.h"
#include <cstdlib>
#include "debug.h"

Go to the source code of this file.

Namespaces

 anonymous_namespace{mrand.cpp}
 

Functions

void initRand ()
 
int mrand ()
 

Variables

const int anonymous_namespace{mrand.cpp}::randNumbers = 1024
 
int anonymous_namespace{mrand.cpp}::mPos = 0
 
int anonymous_namespace{mrand.cpp}::mRand [randNumbers]
 

Function Documentation

◆ initRand()

void initRand ( )

Definition at line 35 of file mrand.cpp.

36 {
37  for (int f = 0; f < randNumbers; f ++)
38  mRand[f] = std::rand();
39 }
int mRand[randNumbers]
Definition: mrand.cpp:32

References anonymous_namespace{mrand.cpp}::mRand, and anonymous_namespace{mrand.cpp}::randNumbers.

Referenced by Client::gameInit().

◆ mrand()

int mrand ( )