~ubuntu-branches/ubuntu/maverick/freecell-solver/maverick

« back to all changes in this revision

Viewing changes to rand.h

  • Committer: Bazaar Package Importer
  • Author(s): RISKO Gergely
  • Date: 2002-04-06 11:35:18 UTC
  • Revision ID: james.westby@ubuntu.com-20020406113518-n398kvu45dixasoh
Tags: upstream-2.4.1
ImportĀ upstreamĀ versionĀ 2.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef __RAND_H
 
3
#define __RAND_H
 
4
 
 
5
#ifdef __cplusplus
 
6
extern "C" {
 
7
#endif
 
8
 
 
9
struct fcs_rand_struct
 
10
{
 
11
    long seed;
 
12
};
 
13
 
 
14
typedef struct fcs_rand_struct fcs_rand_t;
 
15
 
 
16
extern fcs_rand_t * freecell_solver_rand_alloc(unsigned int seed);
 
17
extern void freecell_solver_rand_free(fcs_rand_t * rand);
 
18
extern int freecell_solver_rand_get_random_number(fcs_rand_t * rand);
 
19
 
 
20
extern void freecell_solver_rand_srand(fcs_rand_t * rand, int seed);
 
21
 
 
22
#ifdef __cplusplus
 
23
}
 
24
#endif
 
25
 
 
26
#endif