File: random_gen.h

package info (click to toggle)
rockdodger 0.9.2-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,220 kB
  • ctags: 756
  • sloc: ansic: 5,374; makefile: 159; sh: 21
file content (23 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __RANDOM_GEN_H__20101222
#define __RANDOM_GEN_H__20101222

/*! Initialise the random number generator for the game
 */
void initrnd();

/*! Get the next random number
 * \return next random number
 */
float rnd();

/*! \brief Get next float from random number generator
 *
 * This function actually calls the OS random number generator and
 * returns its value. It does *not* use the random number array.
 *
 * \return random float number
 */
float rnd_next_float();


#endif