PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
f
h
i
n
o
p
r
s
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
geqo_random.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* geqo_random.h
4
* random number generator
5
*
6
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7
* Portions Copyright (c) 1994, Regents of the University of California
8
*
9
* src/include/optimizer/geqo_random.h
10
*
11
*-------------------------------------------------------------------------
12
*/
13
14
/* contributed by:
15
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
16
* Martin Utesch * Institute of Automatic Control *
17
= = University of Mining and Technology =
18
* utesch@aut.tu-freiberg.de * Freiberg, Germany *
19
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
20
*/
21
22
/* -- parts of this are adapted from D. Whitley's Genitor algorithm -- */
23
24
#ifndef GEQO_RANDOM_H
25
#define GEQO_RANDOM_H
26
27
#include "
optimizer/geqo.h
"
28
29
30
extern
void
geqo_set_seed
(
PlannerInfo
*
root
,
double
seed);
31
32
/* geqo_rand returns a random float value in the range [0.0, 1.0) */
33
extern
double
geqo_rand
(
PlannerInfo
*
root
);
34
35
/* geqo_randint returns integer value between lower and upper inclusive */
36
extern
int
geqo_randint
(
PlannerInfo
*
root
,
int
upper
,
int
lower
);
37
38
#endif
/* GEQO_RANDOM_H */
geqo.h
geqo_set_seed
void geqo_set_seed(PlannerInfo *root, double seed)
Definition:
geqo_random.c:20
geqo_randint
int geqo_randint(PlannerInfo *root, int upper, int lower)
Definition:
geqo_random.c:36
geqo_rand
double geqo_rand(PlannerInfo *root)
Definition:
geqo_random.c:28
lower
Datum lower(PG_FUNCTION_ARGS)
Definition:
oracle_compat.c:49
upper
Datum upper(PG_FUNCTION_ARGS)
Definition:
oracle_compat.c:80
root
tree ctl root
Definition:
radixtree.h:1857
PlannerInfo
Definition:
pathnodes.h:196
src
include
optimizer
geqo_random.h
Generated on Wed Jan 8 2025 00:13:25 for PostgreSQL Source Code by
1.9.4