diff options
author | Reimar <Reimar@Leike.name> | 2014-12-04 12:02:53 +0100 |
---|---|---|
committer | Reimar <Reimar@Leike.name> | 2014-12-04 12:02:53 +0100 |
commit | d7c0925b3d7ffb1a58402c05e664966e2f8a597f (patch) | |
tree | 62cef6cc5b74481799c10dab8a18e756b74ea7e9 /random.h | |
parent | 33e9f1db579685dd1ffab767ba7733a8e9503c78 (diff) | |
download | SpaceCannon-d7c0925b3d7ffb1a58402c05e664966e2f8a597f.tar SpaceCannon-d7c0925b3d7ffb1a58402c05e664966e2f8a597f.tar.gz SpaceCannon-d7c0925b3d7ffb1a58402c05e664966e2f8a597f.tar.bz2 SpaceCannon-d7c0925b3d7ffb1a58402c05e664966e2f8a597f.tar.xz SpaceCannon-d7c0925b3d7ffb1a58402c05e664966e2f8a597f.zip |
added custom random generator, ball no has a roll animation, revisited difficulty impact
Diffstat (limited to 'random.h')
-rw-r--r-- | random.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/random.h b/random.h new file mode 100644 index 0000000..2050414 --- /dev/null +++ b/random.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef RANDOM_H | ||
2 | #define RANDOM_H | ||
3 | |||
4 | #include "random.cpp" | ||
5 | |||
6 | //guarenteed no loop with length < 150 when less then 5000 times called | ||
7 | int randn(); | ||
8 | |||
9 | //seed with number from 0 to 672 | ||
10 | void srandn(); | ||
11 | |||
12 | |||
13 | |||
14 | #endif | ||