bglibs
include
misc.h
1
#ifndef MISC__H__
2
#define MISC__H__
3
4
#include "sysdeps.h"
5
6
extern
void
random_init(uint32 seed);
7
extern
uint32 random_int(
void
);
8
#define random_float() (random_int() * (double)(1.0/4294967296.0))
9
#define random_scale(S) ((unsigned int)(random_float() * (S)))
10
#define random_trunc(T) (random_int() % (T))
11
12
unsigned
long
strtou(
const
char
*
str
,
const
char
** end);
13
const
char
* utoa(
unsigned
long
);
14
char
* utoa2(
unsigned
long
,
char
*);
15
16
#endif
str
Definition:
str.h:30
Generated on Fri Feb 23 2018 10:24:54 for bglibs by
1.8.13