This website requires JavaScript.
Explore
Technical Docs
0 A.D. Website
Forums
Help
Register
Sign In
Carltonus
/
0ad
Watch
1
Star
0
Fork
0
You've already forked 0ad
forked from
0ad/0ad
Code
Pull Requests
Activity
2766242181
0ad
/
source
/
tools
/
rmgen
/
random.h
4 lines
102 B
C
Raw
Normal View
History
Unescape
Escape
Added random number functions using Boost as well as a "library.js" file in which the high-level API can be implemented in JS. This was SVN commit r2313.
2005-05-16 09:30:39 +02:00
void
SeedRand
(
unsigned
long
seed
)
;
int
RandInt
(
int
maxVal
)
;
Completed the area placement classes (AreaPlacer, AreaPainter and Constraint) and JS equivalents. Now it remains to implement some of the more interesting ones :P. This was SVN commit r2340.
2005-05-23 05:51:37 +02:00
float
RandFloat
(
)
;
// in range [0,1)
Copy Permalink