tagging release
[dasher.git] / Src / Common / Random.h
blob8307164aa0073087d6bd9794f005e8167f67148f
1 // Random.h
2 //
3 // Copyright (c) 2005 David Ward
5 #ifndef __Random_h__
6 #define __Random_h__
8 #include "Platform.h"
10 // Provide platform-independent interfaces for random number generation
12 // int RandomInt()
13 // A wrapper for rand() - WinCE3 is missing this function
15 #ifdef DASHER_WINCE
17 inline int RandomInt() {
18 return Random();
21 #else
23 #include <stdlib.h>
25 inline int RandomInt() {
26 return rand();
29 #endif
31 #endif