Debian Codegraph @

external/glpk/glprng.h

raw symbols SCIP
1 /* glprng.h (pseudo-random number generator) */cxx . . $ `<file>/external/glpk/glprng.h`/
2
3 /***********************************************************************
4 * This code is part of GLPK (GNU Linear Programming Kit).
5 *
6 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
7 * 2009, 2010 Andrew Makhorin, Department for Applied Informatics,
8 * Moscow Aviation Institute, Moscow, Russia. All rights reserved.
9 * E-mail: <[email protected]>.
10 *
11 * GLPK is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * GLPK is distributed in the hope that it will be useful, but WITHOUT
17 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
19 * License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with GLPK. If not, see <http://www.gnu.org/licenses/>.
23 ***********************************************************************/
24
25 #ifndef GLPRNG_H
26 #define GLPRNG_Hcxx . . $ `external/glpk/glprng.h:26:9`!
27
28 typedef struct RNGcxx . . $ RNG# RNGcxx . . $ RNG#;
29
30 struct RNGcxx . . $ RNG#
31 { /* Knuth's portable pseudo-random number generator */
32 int Acxx . . $ RNG#A.[56];
33 /* pseudo-random values */
34 int *fptrcxx . . $ RNG#fptr.;
35 /* the next A value to be exported */
36 };
37
38 #define rng_create_randcxx . . $ `external/glpk/glprng.h:38:9`! _glp_rng_create_rand
39 RNGcxx . . $ RNG# *rng_create_randcxx . . $ `external/glpk/glprng.h:38:9`!(void);
40 /* create pseudo-random number generator */
41
42 #define rng_init_randcxx . . $ `external/glpk/glprng.h:42:9`! _glp_rng_init_rand
43 void rng_init_randcxx . . $ `external/glpk/glprng.h:42:9`!(RNGcxx . . $ RNG# *rand, int seed);
44 /* initialize pseudo-random number generator */
45
46 #define rng_next_randcxx . . $ `external/glpk/glprng.h:46:9`! _glp_rng_next_rand
47 int rng_next_randcxx . . $ `external/glpk/glprng.h:46:9`!(RNGcxx . . $ RNG# *rand);
48 /* obtain pseudo-random integer in the range [0, 2^31-1] */
49
50 #define rng_unif_randcxx . . $ `external/glpk/glprng.h:50:9`! _glp_rng_unif_rand
51 int rng_unif_randcxx . . $ `external/glpk/glprng.h:50:9`!(RNGcxx . . $ RNG# *rand, int m);
52 /* obtain pseudo-random integer in the range [0, m-1] */
53
54 #define rng_delete_randcxx . . $ `external/glpk/glprng.h:54:9`! _glp_rng_delete_rand
55 void rng_delete_randcxx . . $ `external/glpk/glprng.h:54:9`!(RNGcxx . . $ RNG# *rand);
56 /* delete pseudo-random number generator */
57
58 #define rng_unif_01cxx . . $ `external/glpk/glprng.h:58:9`! _glp_rng_unif_01
59 double rng_unif_01cxx . . $ `external/glpk/glprng.h:58:9`!(RNGcxx . . $ RNG# *rand);
60 /* obtain pseudo-random number in the range [0, 1] */
61
62 #define rng_uniformcxx . . $ `external/glpk/glprng.h:62:9`! _glp_rng_uniform
63 double rng_uniformcxx . . $ `external/glpk/glprng.h:62:9`!(RNGcxx . . $ RNG# *rand, double a, double b);
64 /* obtain pseudo-random number in the range [a, b] */
65
66 #endif
67
68 /* eof */