94a9be56319e5a7e1409782d738ea335e6207c35
[sort-networks.git] / src / sn_random.h
1 /**
2  * libsortnetwork - src/sn_random.h
3  * Copyright (C) 2008-2010  Florian octo Forster
4  *
5  * This library is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation; either version 2.1 of the License, or (at
8  * your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13  * for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation,
17  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18  *
19  * Authors:
20  *   Florian octo Forster <ff at octo.it>
21  **/
22
23 #ifndef SN_RANDOM_H
24 #define SN_RANDOM_H 1
25
26 int sn_random (void);
27 int sn_true_random (void);
28
29 int sn_bounded_random (int min, int max);
30 double sn_double_random (void);
31
32 #endif /* SN_RANDOM_H */