1 /* $Id: flatdice.h,v 1.5 2005/07/06 12:35:11 oohara Exp $ */
2 
3 #ifndef __FLATDICE_H__
4 #define __FLATDICE_H__
5 
6 struct _flatdice
7 {
8   int side;
9   int randomness;
10   int repeat;
11   int *stock;
12   int last;
13 };
14 typedef struct _flatdice flatdice;
15 
16 flatdice *flatdice_new(int side, int randomness, int repeat);
17 void flatdice_delete(flatdice *p);
18 int flatdice_valid(flatdice *p, int quiet);
19 int flatdice_next(flatdice *p);
20 int flatdice_reset(flatdice *p);
21 
22 #endif /* not __FLATDICE_H__ */
23