ManaPlus
Functions
mrand.h File Reference

(642df39)

#include "localconsts.h"

Go to the source code of this file.

Functions

void initRand ()
 
int mrand ()
 

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