An ACS library for ZDoom-based ports
This is an old revision of the document!
int randsign()
Returns a random sign (-1 or 1). Shorthand for 2 * Random(0, 1) - 1.
-1
1
2 * Random(0, 1) - 1
int speed = randsign() * 10.0;