aboutsummaryrefslogtreecommitdiff
path: root/shared/common/rand.h
blob: 75350d236ac8801a15f6a05f9ca6d1559945bc8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright (c) 2002-2003 krzYszcz and others.
 * For information on usage and redistribution, and for a DISCLAIMER OF ALL
 * WARRANTIES, see the file, "LICENSE.txt," in this distribution.  */

#ifndef __RAND_H__
#define __RAND_H__

#define RAND_DEBUG

void rand_seed(unsigned int *statep, unsigned int seed);
int rand_int(unsigned int *statep, int range);
float rand_float(unsigned int *statep);

#endif