1/* Copyright (C) 2013 Monty Program Ab
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 or later of the License.
6
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
11
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
15
16#ifndef _my_rnd_h
17#define _my_rnd_h
18
19C_MODE_START
20
21struct my_rnd_struct {
22 unsigned long seed1,seed2,max_value;
23 double max_value_dbl;
24};
25
26void my_rnd_init(struct my_rnd_struct *rand_st, ulong seed1, ulong seed2);
27double my_rnd(struct my_rnd_struct *rand_st);
28double my_rnd_ssl(struct my_rnd_struct *rand_st);
29
30C_MODE_END
31
32#endif /* _my_rnd_h */
33