ManaPlus
Namespaces | Functions | Variables
mrand.cpp File Reference

(642df39)

#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 34 of file mrand.cpp.

35 {
36  for (int f = 0; f < randNumbers; f ++)
37  mRand[f] = std::rand();
38 }

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

Referenced by Client::gameInit().

◆ mrand()

int mrand ( )
anonymous_namespace{mrand.cpp}::randNumbers
const int randNumbers
Definition: mrand.cpp:29
anonymous_namespace{mrand.cpp}::mPos
int mPos
Definition: mrand.cpp:30
anonymous_namespace{mrand.cpp}::mRand
int mRand[randNumbers]
Definition: mrand.cpp:31