forked from 0ad/0ad
janwas
9d2acce9d8
- deleted most old libraries/headers in codepit to avoid confusion (they are now in SVN anyway). updated required-libraries-linux.txt accordingly - moved rand() into separate file, out of lib.cpp - removed CGUIScrollBarStyle.cpp to avoid empty-file warning - wxwidgets.h: remove redundant #pragma lib and include wxw PCH - move openal-specific stuff to external_libraries/openal.h - cpu, bsd: macosx is-a bsd, so only test OS_BSD This was SVN commit r5082.
22 lines
605 B
C
22 lines
605 B
C
/**
|
|
* =========================================================================
|
|
* File : rand.h
|
|
* Project : 0 A.D.
|
|
* Description : pseudorandom number generator
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_RAND
|
|
#define INCLUDED_RAND
|
|
|
|
/**
|
|
* return random integer in [min, max).
|
|
* avoids several common pitfalls; see discussion at
|
|
* http://www.azillionmonkeys.com/qed/random.html
|
|
**/
|
|
extern uint rand(uint min_inclusive, uint max_exclusive);
|
|
|
|
#endif // #ifndef INCLUDED_RAND
|